Exemple #1
0
 public void AddTwoStringsBadInput()
 {
     string input1 = "1";
     string input2 = "kjwjrjkrjkerjk";
     Addition operation_class = new Addition();
     operation_class.AddStrings(input1,input2); // This is not an Assert
 }
Exemple #2
0
 public void CanAddTwoStringsGoodInput()
 {
     string input1 = "2";
     string input2 = "1";
     int expected = 3;
     Addition operation_class = new Addition();
     Assert.AreEqual(expected, operation_class.AddStrings(input1, input2));
 }