public void WhenReadingIncorrectInputStringsThenCalculatorExceptionIsThrown() { string input = CalculatorForm.GetCalculatorString("t", "1nn2nn3nn4"); Calculator.Add(input); }
public void WhenReadingNoDelimiterThenOutputIsCorrect() { Assert.AreEqual("1,2,3" + Environment.NewLine + "4", CalculatorForm.GetCalculatorString("", "1,2,3" + Environment.NewLine + "4")); }
public void WhenReadingMultipleMulticharacterDelimitersThenOutputIsCorrect() { Assert.AreEqual("//[nn][zv]" + Environment.NewLine + "1zv2nn3zv4", CalculatorForm.GetCalculatorString("[nn][zv]", "1zv2nn3zv4")); }
public void WhenReadingSingleCharacterDelimiterThenOutputIsCorrect() { Assert.AreEqual("//|" + Environment.NewLine + "1|2|3|4", CalculatorForm.GetCalculatorString("|", "1|2|3|4")); }