コード例 #1
0
 public void CustomizeNullFixtureThrows()
 {
     // Fixture setup
     var sut = new StableFiniteSequenceCustomization();
     // Exercise system and verify outcome
     Assert.Throws<ArgumentNullException>(() =>
         sut.Customize(null));
     // Teardown
 }
コード例 #2
0
 public void SutIsCustomization()
 {
     // Fixture setup
     // Exercise system
     var sut = new StableFiniteSequenceCustomization();
     // Verify outcome
     Assert.IsAssignableFrom<ICustomization>(sut);
     // Teardown
 }
コード例 #3
0
 public void CustomizeAddsCorrectItemToCustomizations()
 {
     // Fixture setup
     var sut = new StableFiniteSequenceCustomization();
     var fixture = new Fixture();
     // Exercise system
     sut.Customize(fixture);
     // Verify outcome
     Assert.True(fixture.Customizations.OfType<StableFiniteSequenceRelay>().Any());
     // Teardown
 }