private void CheckParse(String str, Boolean success, Constant expected, String message) { Literal literal = OperandTest.CheckParse(Literal.Parse, str, success, message); if (success) { Constant actual = literal.Constant; ConstantTest.Check(expected, actual, message); } }
internal static void Check(Literal expected, Literal actual, String message) { ConstantTest.Check(expected.Constant, actual.Constant, message); }