public void Enumerable_ShouldBeEmpty_WhenAllSourcesAreEmpty() { // Arrange var source1 = Enumerable.Empty <int>(); var source2 = Enumerable.Empty <int>(); var source3 = Enumerable.Empty <int>(); var subject = new ConcatenatedSequence <int>(source1, source2, source3); // Act var result = subject.ToList(); // Assert result.Should().BeEmpty(); }
public void Enumerable_ShouldBe_ConcatenatedSources() { // Arrange var source1 = new [] { "A" }; var source2 = new [] { "B", "C", "D" }; var source3 = new [] { "E", "F" }; var subject = new ConcatenatedSequence <string>(source1, source2, source3); var expected = new[] { "A", "B", "C", "D", "E", "F" }; // Act var result = subject.ToList(); // Assert result.Should().BeEquivalentTo(expected); }