public void Build_ReturnsAPipeWithTheTieBreakerPassedIntoTheBuildersConstructor()
        {
            // Arrange
            var tieBreaker = new Mock<ITwoWayTieBreaker>().Object;

            // Act
            var pipe = new TieBreakingEitherOutletPipeBuilder<ITwoWayTieBreaker, int>(tieBreaker).Build();

            // Assert
            pipe.GetType().Should().BeAssignableTo<IEitherOutletPipe<ITwoWayTieBreaker, int>>();
            pipe.TieBreaker.Should().Be(tieBreaker);
        }
Exemplo n.º 2
0
        public void Build_ReturnsAPipeWithTheTieBreakerPassedIntoTheBuildersConstructor()
        {
            // Arrange
            var tieBreaker = new Mock <ITwoWayTieBreaker>().Object;

            // Act
            var pipe = new TieBreakingEitherOutletPipeBuilder <ITwoWayTieBreaker, int>(tieBreaker).Build();

            // Assert
            pipe.GetType().Should().BeAssignableTo <IEitherOutletPipe <ITwoWayTieBreaker, int> >();
            pipe.TieBreaker.Should().Be(tieBreaker);
        }