示例#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
        }