CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of TDD
C#
public static class UnityContainerExtensions
{
    public static void AssertMappingsAreValid(this IUnityContainer container)
    {            
        foreach (var registration in container.Registrations)
        {
            container.Resolve(registration.RegisteredType, registration.Name);
        }
    }
}
by Byteflux   October 04, 2011 @ 10:36pm
92 Views
no comments
 
#If DEBUG Then
    <Obsolete("This should not be in production", False)> _
    Public Sub BreakBuildIfIsNotDebug()
 
    End Sub
#Else
       <Obsolete("This should not be in production", True)> _
    Public Sub BreakBuildIfIsNotDebug()
 
    End Sub
by Aron Tsang   September 06, 2010 @ 10:00am
213 Views
1 comments
 
' Import ...
 
Public Module EnvironmentEvents
 
' Autogenerated code ...
 
    Private Sub BuildEvents_OnBuildDone(ByVal Scope As EnvDTE.vsBuildScope, ByVal Action As EnvDTE.vsBuildAction) Handles BuildEvents.OnBuildDone
        If (DTE.ToolWindows.ErrorList.ErrorItems.Count = 0) Then
            SelectRootNode()
            DTE.ExecuteCommand("TestDriven.NET.RunTests")
by Dennis Traub   June 17, 2010 @ 9:40pm
349 Views
no comments
 
C#
namespace swe101
{
    using System;
    using System.Linq;
 
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine(Score(new int[] { 1, 1, 1, 5, 1 }));
195 Views
no comments
 
C#
public void Send_DatabaseTimeOutNewsletterFails_LastPublishDateNotChanged()
{          
    //Arrange
    var originalNewsletter = new AutomaticNewsletter()
                         {
                             Id = 1,
                             Name = "TestNewsletter",
                             LastPublishStatus = PublishStatus.NotSent,
                             LastPublishDate = new DateTime(2000, 01, 01),
                             PublishDay = DayOfWeek.Friday,
by serbrech   January 27, 2010 @ 4:28am
215 Views
no comments
 
XML
<TemplatesExport family="Live Templates">
  <Template uid="9860a3ff-f597-476b-bb22-88e8c6d13244" shortcut="taf" description="Test with Assert.Fail" text="[Test]&#xD;&#xA;public void $Action$_$Scenario$_$Result$()&#xD;&#xA;{&#xD;&#xA;    Assert.Fail();&#xD;&#xA;}&#xD;&#xA;" reformat="True" shortenQualifiedReferences="True">
    <Context>
      <CSharpContext context="TypeMember" minimumLanguageVersion="2.0" />
    </Context>
    <Categories />
    <Variables>
      <Variable name="Action" expression="" initialRange="0" />
      <Variable name="Scenario" expression="" initialRange="0" />
      <Variable name="Result" expression="" initialRange="0" />
by Andy Sherwood   August 27, 2009 @ 9:54am
Tags: tdd, resharper
311 Views
no comments
 
C#
// Set the context for testing purposes
@ContextConfiguration(locations={"/tocla/config/applicationContext-repository.xml", "/tocla/config/test/testContext-repository.xml"})
 
// Ignore test, is just a base class for other tests
@Ignore 
public class BaseTransactionalTest extends AbstractTransactionalJUnit4SpringContextTests {
 
}
by Fernando Claverino   August 22, 2009 @ 6:38pm
Tags: spring, tdd
314 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate