Exemplo n.º 1
0
 static void Main(string[] args)
 {
     SayHello();
     Console.WriteLine();
     var businessLogic = new BusinessLogic();
     Console.WriteLine(string.Format(CultureInfo.InvariantCulture, "Calculating: 3 + 3 = {0}", businessLogic.Add(3, 3)));
     Console.WriteLine(string.Format(CultureInfo.InvariantCulture, "Calculating: 3 - 3 = {0}", businessLogic.Subtract(3, 3)));
     Console.Read();
 }
 public void BusinessLogic_Add()
 {
     var businessLogic = new BusinessLogic();
     Assert.IsTrue(businessLogic.Add(3, 3) == 6);
 }