public void CanGetLineForSpace()
        {
            ScriptFile spaceFile = ScriptFileChangeTests.CreateScriptFile(" ");

            Assert.Single(spaceFile.FileLines);
            Assert.Equal(" ", spaceFile.FileLines[0]);
        }
        public void CanGetLineForEmptyString()
        {
            ScriptFile emptyFile = ScriptFileChangeTests.CreateScriptFile(string.Empty);

            Assert.Single(emptyFile.FileLines);
            Assert.Equal(string.Empty, emptyFile.FileLines[0]);
        }
        public ScriptFileGetLinesTests()
        {
            _scriptFile_noTrailingNewline = ScriptFileChangeTests.CreateScriptFile(
                TestString_NoTrailingNewline);

            _scriptFile_trailingNewline = ScriptFileChangeTests.CreateScriptFile(
                TestString_TrailingNewline);
        }
        public ScriptFilePositionTests()
        {
            scriptFile =
                ScriptFileChangeTests.CreateScriptFile(@"
First line
  Second line is longer
    Third line
");
        }
        public void CanGetSameLinesWithUnixLineBreaks()
        {
            ScriptFile unixFile = ScriptFileChangeTests.CreateScriptFile(TestString_NoTrailingNewline.Replace("\r\n", "\n"));

            Assert.Equal(_scriptFile_noTrailingNewline.FileLines, unixFile.FileLines);
        }