public void CustomizeNullFixtureThrows() { // Fixture setup var sut = new StableFiniteSequenceCustomization(); // Exercise system and verify outcome Assert.Throws<ArgumentNullException>(() => sut.Customize(null)); // Teardown }
public void SutIsCustomization() { // Fixture setup // Exercise system var sut = new StableFiniteSequenceCustomization(); // Verify outcome Assert.IsAssignableFrom<ICustomization>(sut); // Teardown }
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 }