Esempio n. 1
0
        public void ShouldCalculateCorrectAreaFor(int lenght, int widht, int expectedResult)
        {
            var shape = new Square();

            shape.Lenght = lenght;
            shape.Width  = widht;

            var actualResult = AreaCalculator.CalculateFor(shape);

            Assert.AreEqual(actualResult, expectedResult);
        }