public void SimpleSumTest() { Console.WriteLine(@"SimpleSumTest Called"); Calculator calculator=new Calculator(); Assert.AreEqual(10, calculator.Sum(0, 10)); }
private void SumBTN_Click(object sender, EventArgs e) { Calculator calculator=new Calculator(); MessageBox.Show(calculator.Sum(int.MaxValue,1).ToString()); }