public void ReturnsCongruencyForCongruentRectanglesWithOppositeWidthAndHeight() { //Arrange RectangleF rec1 = new RectangleF(0, 0, 4, 2); RectangleF rec2 = new RectangleF(0, 0, 2, 4); var processor = new RectangleProcessor(rec1, rec2); //Act var result = processor.Congruence(); //Assert Assert.IsTrue(result.CongruencePresent); }
public void ReturnsNoCongruencyForNonCongruentRectangles() { //Arrange RectangleF rec1 = new RectangleF(0, 0, 2, 2); RectangleF rec2 = new RectangleF(0, 2, 2, 3); var processor = new RectangleProcessor(rec1, rec2); //Act var result = processor.Congruence(); //Assert Assert.IsFalse(result.CongruencePresent); }