public void OtherSymbolExceptionTest() { CountingTree myExpress2 = new CountingTree("(+ (/ X 12) 12)"); myExpress2.CountTree(); }
public void MissedTokenExceptionTest() { CountingTree myExpress2 = new CountingTree("( (/ 12 ) 12)"); myExpress2.CountTree(); }
public void EmptyExpressionExceptionTest() { CountingTree myExpress2 = new CountingTree(""); myExpress2.CountTree(); }
public void Initialize() { myExpress = new CountingTree("(+ (/ 12 3) 12)"); }
public void DivideByZeroExceptionTest() { CountingTree myExpress2 = new CountingTree("(+ (/ 12 0) 12)"); myExpress2.CountTree(); }