예제 #1
0
 public void OtherSymbolExceptionTest()
 {
     CountingTree myExpress2 = new CountingTree("(+ (/ X 12) 12)");
     myExpress2.CountTree();
 }
예제 #2
0
 public void MissedTokenExceptionTest()
 {
     CountingTree myExpress2 = new CountingTree("( (/ 12 ) 12)");
     myExpress2.CountTree();
 }
예제 #3
0
 public void EmptyExpressionExceptionTest()
 {
     CountingTree myExpress2 = new CountingTree("");
     myExpress2.CountTree();
 }
예제 #4
0
 public void Initialize()
 {
     myExpress = new CountingTree("(+ (/ 12 3) 12)");
 }
예제 #5
0
 public void DivideByZeroExceptionTest()
 {
     CountingTree myExpress2 = new CountingTree("(+ (/ 12 0) 12)");
     myExpress2.CountTree();
 }