public void DataFrameJoinTests_GetSortedListsIntersection_SortedCollections_WithoutIntersection_Success() { // Arrange var collection1 = new Collection <long>() { 111, 222, 333, 888, 999 }; var collection2 = new Collection <long>() { 444, 555, 666, 777 }; // Act var intersection = DataFrameJoinExtensions.GetSortedListsIntersection(collection1, collection2); // Assert Assert.Equal(0, intersection.Count); }
public void DataFrameJoinTests_GetSortedListsIntersection_EmptyCollections_EmptyResult() { // Arrange var collection1 = new Collection <long>(); var collection2 = new Collection <long>(); // Act var intersection = DataFrameJoinExtensions.GetSortedListsIntersection(collection1, collection2); // Assert Assert.Equal(0, intersection.Count); }
public void DataFrameJoinTests_GetSortedListsIntersection_SortedCollections_WithIntersection_Success() { // Arrange var collection1 = new Collection <long>() { 111, 222, 333, 444, 555, 888 }; var collection2 = new Collection <long>() { 444, 555, 666, 777, 888, 999 }; var expected = new Collection <long> { 444, 555, 888 }; // Act var intersection = DataFrameJoinExtensions.GetSortedListsIntersection(collection1, collection2); // Assert Assert.True(expected.SequenceEqual(intersection)); }