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

            // Act & assert
            Assert.Throws <ArgumentNullException>(() =>
                                                  sut.Customize(null));
        }
        public void SutIsCustomization()
        {
            // Arrange
            // Act
            var sut = new StableFiniteSequenceCustomization();

            // Assert
            Assert.IsAssignableFrom <ICustomization>(sut);
        }
Esempio n. 3
0
        public void CustomizeNullFixtureThrows()
        {
            // Fixture setup
            var sut = new StableFiniteSequenceCustomization();

            // Exercise system and verify outcome
            Assert.Throws <ArgumentNullException>(() =>
                                                  sut.Customize(null));
            // Teardown
        }
Esempio n. 4
0
        public void SutIsCustomization()
        {
            // Fixture setup
            // Exercise system
            var sut = new StableFiniteSequenceCustomization();

            // Verify outcome
            Assert.IsAssignableFrom <ICustomization>(sut);
            // 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());
        }
Esempio n. 6
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
        }