示例#1
0
        public void Given4()
        {
            double except = 10 * Math.PI;
            Circle input  = new Circle();

            input.half = 5;
            double operation = ShaperHelper.ComputerArea2(input);

            Assert.AreEqual(except, operation);
        }
示例#2
0
        public void Given2()
        {
            int       except = 30;
            Rectangle input  = new Rectangle();

            input.width  = 5;
            input.height = 10;
            double operation = ShaperHelper.ComputerArea2(input);

            Assert.AreEqual(except, operation);
        }