Пример #1
0
        public void TheMapPassedIntoTheConstructor_IsSetOnTheMapProperty()
        {
            // Arrange
            Func <int, string> map = x => x.ToString();

            // Act
            var transformPipeWithMapBuilder = new TransformPipeWithMapBuilder <int, string>(map);

            // Assert
            transformPipeWithMapBuilder.Should().NotBeNull();
            transformPipeWithMapBuilder.Map.Should().Be(map);
        }
        public void TheMapPassedIntoTheConstructor_IsSetOnTheMapProperty()
        {
            // Arrange
            Func<int, string> map = x => x.ToString();

            // Act
            var transformPipeWithMapBuilder = new TransformPipeWithMapBuilder<int, string>(map);

            // Assert
            transformPipeWithMapBuilder.Should().NotBeNull();
            transformPipeWithMapBuilder.Map.Should().Be(map);
        }
        public void Build_WithTheMapSetInTheProperty_ProducesATransformPipeWithThatMap()
        {
            // Arrange
            Func<int, string> map = x => x.ToString();
            var transformPipeWithMapBuilder = new TransformPipeWithMapBuilder<int, string>(x => "") {Map = map};
            // Act
            var pipe = transformPipeWithMapBuilder.Build();

            // Assert
            pipe.Map.Should().Be(map);
            pipe.Inlet.Should().NotBeNull();
        }
Пример #4
0
        public void Build_GivenAMapInTheConstructor_ProducesATransformPipeWithThatMap()
        {
            // Arrange
            Func <int, string> map          = x => x.ToString();
            var transformPipeWithMapBuilder = new TransformPipeWithMapBuilder <int, string>(map);

            // Act
            var pipe = transformPipeWithMapBuilder.Build();

            // Assert
            pipe.Map.Should().Be(map);
            pipe.Inlet.Should().NotBeNull();
        }
        public void Build_GivenAMapInTheConstructor_ProducesATransformPipeWithThatMap()
        {
            // Arrange
            Func<int, string> map = x => x.ToString();
            var transformPipeWithMapBuilder = new TransformPipeWithMapBuilder<int, string>(map);

            // Act
            var pipe = transformPipeWithMapBuilder.Build();

            // Assert
            pipe.Map.Should().Be(map);
            pipe.Inlet.Should().NotBeNull();
        }
Пример #6
0
        public void Build_WithTheMapSetInTheProperty_ProducesATransformPipeWithThatMap()
        {
            // Arrange
            Func <int, string> map          = x => x.ToString();
            var transformPipeWithMapBuilder = new TransformPipeWithMapBuilder <int, string>(x => "")
            {
                Map = map
            };
            // Act
            var pipe = transformPipeWithMapBuilder.Build();

            // Assert
            pipe.Map.Should().Be(map);
            pipe.Inlet.Should().NotBeNull();
        }