public void ZeroSquaresShouldBeFound() { var _squaresService = new SquaresService(); Point p1 = new Point(0, 0); Point p2 = new Point(1, 0); Point p3 = new Point(0, 5); Point p4 = new Point(1, 1); List <Point> pointsList = new List <Point> { p1, p2, p3, p4 }; Assert.Equal(_squaresService.GetSquaresList(pointsList).Count, 0); }
public void TwoSquaresShouldBeFound() { var _squaresService = new SquaresService(); Point p1 = new Point(0, 0); Point p2 = new Point(1, 0); Point p3 = new Point(0, 1); Point p4 = new Point(1, 1); Point p5 = new Point(2, 2); Point p6 = new Point(2, 0); Point p7 = new Point(0, 2); List <Point> pointsList = new List <Point> { p1, p2, p3, p4, p5, p6, p7 }; Assert.Equal(_squaresService.GetSquaresList(pointsList).Count, 2); }