示例#1
0
        public void New_GivenANumberOfInletsAndOutlets_InitialisesTheBuilderWithThoseValues()
        {
            // Arrange
            const int numberOfInlets  = 4;
            const int numberOfOutlets = 5;

            // Act
            var builder = new SizedBigValvedPipeBuilder <string, int>(numberOfInlets, numberOfOutlets);

            // Assert
            builder.NumberOfInlets.Should().Be(numberOfInlets);
            builder.NumberOfOutlets.Should().Be(numberOfOutlets);
        }
        public void New_GivenANumberOfInletsAndOutlets_InitialisesTheBuilderWithThoseValues()
        {
            // Arrange
            const int numberOfInlets = 4;
            const int numberOfOutlets = 5;

            // Act
            var builder = new SizedBigValvedPipeBuilder<string, int>(numberOfInlets, numberOfOutlets);

            // Assert
            builder.NumberOfInlets.Should().Be(numberOfInlets);
            builder.NumberOfOutlets.Should().Be(numberOfOutlets);
        }