public void IntersectRectangle_NoIntersection() { var rectangleOne = new Solution.Rectangle(1, 1, 1, 1); var rectagnleTwo = new Solution.Rectangle(3, 3, 1, 1); var result = Solution.IntersectRectangle(rectangleOne, rectagnleTwo); result.Should().BeEquivalentTo(new Solution.Rectangle(0, 0, -1, -1)); // No intersection }
public void IntersectRectangle() { var rectangleOne = new Solution.Rectangle(1, 1, 1, 1); var rectagnleTwo = new Solution.Rectangle(2, 2, 1, 1); var result = Solution.IntersectRectangle(rectangleOne, rectagnleTwo); result.Should().BeEquivalentTo(new Solution.Rectangle(2, 2, 0, 0)); }