예제 #1
0
 public void ParseThrowsExceptionForBadOperator()
 {
     Parse test1 = new Parse();
     string thisOperator = test1.ExtractOperator("1 1 1");
     Assert.AreEqual(thisOperator, 1);
 }
예제 #2
0
 public void ParseCanReturnOperator()
 {
     Parse test1 = new Parse();
     string test2 = test1.ExtractOperator("1 + 1");
     Assert.AreEqual("+", test2);
 }