Exemple #1
0
            public void UnixToDos()
            {
                var text = EditUtil.NormalizeNewLines("dog\ncat", "\r\n");

                Assert.Equal("dog\r\ncat", text);
            }
Exemple #2
0
            public void DosToUnixAtEnd()
            {
                var text = EditUtil.NormalizeNewLines("dog\r\ncat\r\n", "\n");

                Assert.Equal("dog\ncat\n", text);
            }