Esempio n. 1
0
        public void TwentyFor4X5RectangleFromSquare()
        {
            RectangleW newRectangle = new SquareW();

            newRectangle.Width  = 4;
            newRectangle.Height = 5;
            Assert.AreEqual(20, AreaCalculatorW.CalculateArea(newRectangle));
        }
Esempio n. 2
0
        public void NineFor3X3Square()
        {
            var mySquare = new SquareW()
            {
                Height = 3
            };

            Assert.AreEqual(9, AreaCalculatorW.CalculateArea(mySquare));
        }