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