Exemplo n.º 1
0
 public void DivByZeroTest()
 {
     using (var client = new ServiceReference.CalculatorServiceClient())
     {
         Console.WriteLine(client.Div(10, 5));
         client.Div(10, 0);
     }
 }
Exemplo n.º 2
0
 public void DivTest()
 {
     using (var client = new ServiceReference.CalculatorServiceClient())
     {
         Console.WriteLine(client.Div(10, 5));
         Assert.AreEqual(client.Div(10, 5), 2);
     }
 }