Пример #1
0
 public void DivByZeroTest()
 {
     using (var client = new TcpServiceReference.CalculatorServiceClient())
     {
         Console.WriteLine(client.Div(10, 5));
         client.Div(10, 0);
     }
 }
Пример #2
0
 public void AddTest()
 {
     using (var client = new TcpServiceReference.CalculatorServiceClient())
     {
         Console.WriteLine(client.Add(5, 71));
         Assert.AreEqual(client.Add(5, 5), 10);
     }
 }
Пример #3
0
 public void DivTest()
 {
     using (var client = new TcpServiceReference.CalculatorServiceClient())
     {
         Console.WriteLine(client.Div(10, 5));
         Assert.AreEqual(client.Div(10, 5), 2);
     }
 }