public void Task2_TestSquare_ValidParams_ExpectEqual() { RectangleProperties rectangle = new RectangleProperties(new Point(0, 4), new Point(4, 0)); Assert.AreEqual(16, rectangle.Square); }
public void Task2_TestPerimetr_ValidParams_Expect18() { RectangleProperties rectangle = new RectangleProperties(new Point(-2, 2), new Point(5, 0)); Assert.AreEqual(18, rectangle.Perimetr); }
public void Task2_TestSquare_InputIs0_Expect0() { RectangleProperties rectangle = new RectangleProperties(new Point(), new Point()); Assert.AreEqual(0, rectangle.Square); }
public void Task2_TestPerimetr_InputIs0_Expect0() { RectangleProperties rectangle = new RectangleProperties(new Point(), new Point()); Assert.AreEqual(0, rectangle.Perimetr); }