예제 #1
0
        public ActionResult add()
        {
            string     a      = Request.Form["1st number"];
            int        n1     = Convert.ToInt32(a);
            string     b      = Request.Form["2nd number"];
            int        n2     = Convert.ToInt32(b);
            sumkolaagi s      = new sumkolaagi();
            int        result = s.summethod(n1, n2);

            ViewBag.result = result;
            return(View());
        }
예제 #2
0
        public void add()
        {
            sumkolaagi s = new sumkolaagi();

            Assert.AreEqual(15, s.summethod(5, 10));
        }