Beispiel #1
0
            public void Task2_TestSquare_ValidParams_ExpectEqual()
            {
                RectangleProperties rectangle = new RectangleProperties(new Point(0, 4), new Point(4, 0));

                Assert.AreEqual(16, rectangle.Square);
            }
Beispiel #2
0
            public void Task2_TestPerimetr_ValidParams_Expect18()
            {
                RectangleProperties rectangle = new RectangleProperties(new Point(-2, 2), new Point(5, 0));

                Assert.AreEqual(18, rectangle.Perimetr);
            }
Beispiel #3
0
            public void Task2_TestSquare_InputIs0_Expect0()
            {
                RectangleProperties rectangle = new RectangleProperties(new Point(), new Point());

                Assert.AreEqual(0, rectangle.Square);
            }
Beispiel #4
0
            public void Task2_TestPerimetr_InputIs0_Expect0()
            {
                RectangleProperties rectangle = new RectangleProperties(new Point(), new Point());

                Assert.AreEqual(0, rectangle.Perimetr);
            }