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()); }
public void add() { sumkolaagi s = new sumkolaagi(); Assert.AreEqual(15, s.summethod(5, 10)); }