public void CustomizeNullFixtureThrows()
        {
            // Arrange
            var sut = new StableFiniteSequenceCustomization();

            // Act & assert
            Assert.Throws <ArgumentNullException>(() =>
                                                  sut.Customize(null));
        }
Beispiel #2
0
        public void CustomizeNullFixtureThrows()
        {
            // Fixture setup
            var sut = new StableFiniteSequenceCustomization();

            // Exercise system and verify outcome
            Assert.Throws <ArgumentNullException>(() =>
                                                  sut.Customize(null));
            // Teardown
        }
        public void CustomizeAddsCorrectItemToCustomizations()
        {
            // Arrange
            var sut     = new StableFiniteSequenceCustomization();
            var fixture = new Fixture();

            // Act
            sut.Customize(fixture);
            // Assert
            Assert.True(fixture.Customizations.OfType <StableFiniteSequenceRelay>().Any());
        }
Beispiel #4
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
        }