public void New_GivenSizeAndATieBreaker_SetsTheBuildersCorrespondingProperties()
        {
            // Arrange
            var tieBreaker = new UniformRandomisingTieBreaker();
            const int size = 5;

            // Act
            var builder = new TieBreakingSizedBigEitherInletPipeBuilder<int, IUniformRandomisingTieBreaker>(size, tieBreaker);

            // Assert
            builder.Size.Should().Be(size);
            builder.TieBreaker.Should().Be(tieBreaker);
        }
Exemplo n.º 2
0
        public void New_GivenSizeAndATieBreaker_SetsTheBuildersCorrespondingProperties()
        {
            // Arrange
            var       tieBreaker = new UniformRandomisingTieBreaker();
            const int size       = 5;

            // Act
            var builder = new TieBreakingSizedBigEitherInletPipeBuilder <int, IUniformRandomisingTieBreaker>(size, tieBreaker);

            // Assert
            builder.Size.Should().Be(size);
            builder.TieBreaker.Should().Be(tieBreaker);
        }