Exemplo n.º 1
0
 public void OperatorMul(string expression, string expected)
 {
     BuiltinOperatorsTester.AssertResult(expression + "=" + expected, true);
 }
Exemplo n.º 2
0
 public void OperatorMod(string expression, string expected)
 {
     BuiltinOperatorsTester.AssertResult(expression + "=" + (expected ?? "0/0"), true);
 }
Exemplo n.º 3
0
 public void OperatorEqualNotEqual(string lhs, string rhs, bool expected)
 {
     BuiltinOperatorsTester.AssertResult(lhs + "=" + rhs, expected);
     BuiltinOperatorsTester.AssertResult(lhs + "!=" + rhs, !expected);
 }
Exemplo n.º 4
0
 public void OperatorGreaterEqualLowerThan(string lhs, string rhs, bool expected)
 {
     BuiltinOperatorsTester.AssertResult(lhs + ">=" + rhs, !expected);
     BuiltinOperatorsTester.AssertResult(lhs + "<" + rhs, expected);
 }
Exemplo n.º 5
0
 public void OperatorAnd(string expression, bool expected)
 {
     BuiltinOperatorsTester.AssertResult(expression, expected);
 }