コード例 #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
        }