public void GetHunkOriginalFile_DeleteDiff_ExpectHunkOriginalFile() { //Arrange var uniDiffParser = new UnifiedFormatDiffParser(DiffOfADeleteOfThreeLines, 0); //Act var hunkOriginalFile = uniDiffParser.GetHunkNewFile(uniDiffParser.GetUnifiedFormatHunkLines().First().Item1); //Assert hunkOriginalFile.ShouldBe("6,0"); }
public void GetHunkOriginalFile_WithOneHunk_ExpectHunkOriginalFile() { //Arrange var uniDiffParser = new UnifiedFormatDiffParser(FirstUnifiedDiff, 0); //Act string hunkOriginalFile = uniDiffParser.GetHunkNewFile(uniDiffParser.GetUnifiedFormatHunkLines().First().Item1); //Assert hunkOriginalFile.ShouldBe("42,20"); }