Beispiel #1
0
        public void CustomizeNullFixtureThrows()
        {
            // Arrange
            var sut = new DisposableTrackingCustomization();

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

            // Exercise system and verify outcome
            Assert.Throws <ArgumentNullException>(() =>
                                                  sut.Customize(null));
            // Teardown
        }
Beispiel #3
0
        public void CustomizeAddsCorrectBehavior()
        {
            // Arrange
            var fixture = new Fixture();
            var sut     = new DisposableTrackingCustomization();

            // Act
            sut.Customize(fixture);
            // Assert
            Assert.Contains(sut.Behavior, fixture.Behaviors);
        }
        public void CustomizeAddsCorrectBehavior()
        {
            // Fixture setup
            var fixture = new Fixture();
            var sut     = new DisposableTrackingCustomization();

            // Exercise system
            sut.Customize(fixture);
            // Verify outcome
            Assert.Contains(sut.Behavior, fixture.Behaviors);
            // Teardown
        }