public void ReturnsMinimumNumberOfPointsTestCase07() { var segments = new List <(int A, int B)> { (5, 5), (-1, 4), (-3, -2), (2, 4), (-5, -3), (3, 5), (-1, 3) }; const int expected = 3; var actual = TouchAllSegments.GreedyImplementation(segments); actual.ShouldBe(expected); }
public void ReturnsMinimumNumberOfPointsTestCase06() { var segments = new List <(int A, int B)> { (4, 7), (1, 3), (2, 5), (5, 6) }; const int expected = 2; var actual = TouchAllSegments.GreedyImplementation(segments); actual.ShouldBe(expected); }