public void Files_Are_Exact_Copy_PrevGen_Missing()
        {
            TextFileInformation tfi = new TextFileInformation();
            tfi.PrevGenFile = TextFile.Blank;
            tfi.UserFile = tfi.NewGenFile = new TextFile("line 1");
            tfi.IntelliMerge = IntelliMergeType.PlainText;
            tfi.RelativeFilePath = "text.txt";

            TwoWayVisualDiff diffUtility = new TwoWayVisualDiff(tfi);

            VisualDiffOutput output = diffUtility.ProcessMergeOutput();

            Assert.That(output, Is.Not.Null);
            Assert.That(output.LineCount, Is.EqualTo(1));
            Assert.That(output.LeftLines[0].Text, Is.EqualTo("line 1"));
            Assert.That(output.RightLines[0].Text, Is.EqualTo("line 1"));
        }
        public void Files_Are_Removed_User()
        {
            TextFileInformation tfi = new TextFileInformation();

            tfi.PrevGenFile = tfi.NewGenFile = tfi.UserFile = new TextFile("line 1");
            tfi.IntelliMerge = IntelliMergeType.PlainText;
            tfi.RelativeFilePath = "text.txt";

            TwoWayVisualDiff diffUtility = new TwoWayVisualDiff(tfi);
            tfi.UserFile = TextFile.Blank;
            diffUtility.ProcessMergeOutput();
        }
 public override VisualDiffOutput GetDiffOutput()
 {
     TwoWayVisualDiff diffUtility = new TwoWayVisualDiff(fileInformation);
     return diffUtility.ProcessMergeOutput();
 }