public void IsMultiDelimiter_Single_Delimiters_AreNot_Classified_As_Multiples() { CalculationExpressionParser parser = new CalculationExpressionParser(); string[] testCases = { "[%]", "[*]" }; foreach (string invalidCase in testCases) { Assert.IsFalse(parser.IsMultiDelimiter(invalidCase)); } }
public void IsMultiDelimiter_MatchesMultipleDelimiters() { CalculationExpressionParser parser = new CalculationExpressionParser(); string[] testCases = { "[%][*]", "[***][%%%]" }; foreach (string validCase in testCases) { Assert.IsTrue(parser.IsMultiDelimiter(validCase)); } }