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