public void TestBasicOperators() { string expected; IEnumerable <InputElement> output = new List <InputElement>(); ip.Clear(); ip.GetseparatedPlainText("1", out output); ip.GetseparatedPlainText("+", out output); ip.GetseparatedPlainText("1", out output); ip.GetseparatedPlainText("-", out output); ip.GetseparatedPlainText("1", out output); expected = "1 + 1 - 1"; Assert.AreEqual <String>(expected, String.Join(" ", output)); ip.Clear(); ip.GetseparatedPlainText("1", out output); ip.GetseparatedPlainText(".", out output); ip.GetseparatedPlainText("1", out output); ip.GetseparatedPlainText("+", out output); ip.GetseparatedPlainText("1", out output); expected = "1 . 1 + 1"; Assert.AreEqual <String>(expected, String.Join(" ", output)); ip.Clear(); ip.GetseparatedPlainText("1", out output); ip.GetseparatedPlainText(".", out output); ip.GetseparatedPlainText("1", out output); ip.GetseparatedPlainText(".", out output); ip.GetseparatedPlainText("1", out output); ip.GetseparatedPlainText("+", out output); ip.GetseparatedPlainText("1", out output); expected = "1 . 11 + 1"; Assert.AreEqual <String>(expected, String.Join(" ", output)); ip.Clear(); ip.GetseparatedPlainText("1", out output); ip.GetseparatedPlainText(".", out output); ip.GetseparatedPlainText("+", out output); ip.GetseparatedPlainText("1", out output); expected = "1 + 1"; Assert.AreEqual <String>(expected, String.Join(" ", output)); }