예제 #1
0
        public void Rectangle_Area_CheckResult()
        {
            //Arrange
            decimal        a = 4m;
            decimal        b = 2m;
            decimal        c = 2m;
            decimal        expectedResult = 8m;
            RectangleShape op             = new RectangleShape()
            {
                Side1 = a, Side2 = b, Height = c
            };

            //Act
            decimal response = op.Area();

            //Assert
            Assert.AreEqual(expectedResult, response);
        }