public void ContainsDelimiterExpression_IsValid_ForMultipleDelimiters()
 {
     string multipleDelimiterProgram = "//[*][%]\n1*2%3";
     CalculationExpressionParser parser = new CalculationExpressionParser();
     bool result = parser.ContainsDelimiterExpression(multipleDelimiterProgram);
     Assert.IsTrue(result);
 }
        public void ContainsDelimiterExpression_SingleCharacterDelimitersExpressions_Valid()
        {
            CalculationExpressionParser parser = new CalculationExpressionParser();

            string[] singleCharacterDelimiterPrograms = {
                "//;\n1;2",
                "//,\n1,2"
            };

            foreach (string calcProgram in singleCharacterDelimiterPrograms)
            {
                bool positiveResult = parser.ContainsDelimiterExpression(calcProgram);
                Assert.IsTrue(positiveResult);
            }
        }
 public void ContainsDelimiterExpression_InvalidWithoutNewline()
 {
     CalculationExpressionParser parser = new CalculationExpressionParser();
     bool negativeResult = parser.ContainsDelimiterExpression("//;1;2");
     Assert.IsFalse(negativeResult);
 }