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(); }
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(); }
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(); }