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

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

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

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

            Assert.AreEqual(except, operation);
        }