Exemple #1
0
        public void TwentyFor4X5RectangleFromSquare()
        {
            RectangleW newRectangle = new SquareW();

            newRectangle.Width  = 4;
            newRectangle.Height = 5;
            Assert.AreEqual(20, AreaCalculatorW.CalculateArea(newRectangle));
        }
Exemple #2
0
        public void SixFor2X3Rectangle()
        {
            var myRectangle = new RectangleW {
                Height = 2, Width = 3
            };

            Assert.AreEqual(6, AreaCalculatorW.CalculateArea(myRectangle));
        }
Exemple #3
0
        public void NineFor3X3Square()
        {
            var mySquare = new SquareW()
            {
                Height = 3
            };

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