예제 #1
0
 public void FreezeUnseededWithNullFixtureThrows()
 {
     // Arrange
     // Act & assert
     Assert.Throws <ArgumentNullException>(() =>
                                           FixtureFreezer.Freeze <object>(null));
 }
예제 #2
0
 public void FreezeUnseededWithNullFixtureThrows()
 {
     // Fixture setup
     // Exercise system and verify outcome
     Assert.Throws <ArgumentNullException>(() =>
                                           FixtureFreezer.Freeze <object>(null));
     // Teardown
 }
예제 #3
0
        public void FreezeCustomWithNullFixtureThrows()
        {
            // Arrange
            Func <ICustomizationComposer <object>, ISpecimenBuilder> dummyTransform = c => c;

            // Act & assert
            Assert.Throws <ArgumentNullException>(() =>
                                                  FixtureFreezer.Freeze <object>(null, dummyTransform));
        }
예제 #4
0
        public void FreezeCustomWithNullFixtureThrows()
        {
            // Fixture setup
            Func <ICustomizationComposer <object>, ISpecimenBuilder> dummyTransform = c => c;

            // Exercise system and verify outcome
            Assert.Throws <ArgumentNullException>(() =>
                                                  FixtureFreezer.Freeze <object>(null, dummyTransform));
            // Teardown
        }