public void InputInstructions_ValidForOneNumber()
 {
     CalculationExpressionParser parser = new CalculationExpressionParser();
     string singleNumber = parser.InputInstructions("//;\n1");
     Assert.AreEqual("1", singleNumber);
     string multipleNumbers = parser.InputInstructions("//;\n1,2");
     Assert.AreEqual("1,2", multipleNumbers);
 }
        public void Delimiters_IsValidFor_MultiCharacterDelimiters()
        {
            CalculationExpressionParser parser = new CalculationExpressionParser();
            string calcProgram = "//[***]\n1***2***3";
            string delimiter = parser.Delimiters(calcProgram)[0];
            Assert.AreEqual("***", delimiter);

            string instructions = parser.InputInstructions(calcProgram);
            Assert.AreEqual("1***2***3", instructions);
        }
 public void InputInstructions_Valid_WithoutDelimiterExpression()
 {
     CalculationExpressionParser parser = new CalculationExpressionParser();
     string multipleNumbersNoInstructions = parser.InputInstructions("2,1");
     Assert.AreEqual("2,1", multipleNumbersNoInstructions);
 }