File tree 2 files changed +4
-3
lines changed 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 5
5
6
6
namespace LibGit2Sharp . Tests
7
7
{
8
- public class DiffFixture : BaseFixture
8
+ public class DiffTreeToTreeFixture : BaseFixture
9
9
{
10
10
//TODO Test binary files (do we have hunks/line callbacks)
11
11
//TODO What does content contain when dealing with a Binary file?
@@ -21,6 +21,7 @@ public void ComparingATreeAgainstItselfReturnsNoDifference()
21
21
TreeChanges changes = repo . Diff . Compare ( tree , tree ) ;
22
22
23
23
Assert . Empty ( changes ) ;
24
+ Assert . Equal ( string . Empty , changes . Patch ) ;
24
25
}
25
26
}
26
27
@@ -59,7 +60,7 @@ public void CanCompareACommitTreeAgainstItsParent()
59
60
60
61
Assert . Equal ( "1.txt" , treeEntryChanges . Path ) ;
61
62
Assert . Equal ( ChangeKind . Added , treeEntryChanges . Status ) ;
62
- // Also in Added collection
63
+
63
64
Assert . Equal ( treeEntryChanges , changes . Added . Single ( ) ) ;
64
65
Assert . Equal ( 1 , treeEntryChanges . LinesAdded ) ;
65
66
Original file line number Diff line number Diff line change 46
46
<Compile Include =" ConfigurationFixture.cs" />
47
47
<Compile Include =" AttributesFixture.cs" />
48
48
<Compile Include =" ObjectDatabaseFixture.cs" />
49
- <Compile Include =" DiffFixture .cs" />
49
+ <Compile Include =" DiffTreeToTreeFixture .cs" />
50
50
<Compile Include =" RepositoryOptionsFixture.cs" />
51
51
<Compile Include =" ResetFixture.cs" />
52
52
<Compile Include =" LazyFixture.cs" />
You can’t perform that action at this time.
0 commit comments