Example #1
0
        public void CollapseWhitespacesTest()
        {
            var input = new TextInputRange {
                File = new TextFile {
                    Content  = "AB  C",
                    Filename = ""
                }
            };

            input.Extend(nChars: 2);
            input.CollapseWhitespaces();
            Assert.AreEqual(expected: 'C', actual: input.EndChar);
            Assert.AreEqual(expected: "", actual: input.Text);
        }