예제 #1
0
        public ActionResult FindCube(int no)
        {
            Calulator c   = new Calulator();
            int       res = c.Cube(no);

            return(Content($"Cube of {no} is {res}"));
        }
예제 #2
0
        public void TestCube()
        {
            Calulator c = new Calulator();

            Assert.AreEqual(1000, c.Cube(10));
        }