// GET: MyCalculator public ActionResult FindSquare(int no) { Calulator c = new Calulator(); int res = c.Square(no); return(Content($"Square of {no} is {res}")); }
public void TestSquare() { Calulator c = new Calulator(); Assert.AreEqual(100, c.Square(10)); }