8000 Rename DiffFixture to DiffTreeToTreeFixture · mm201/libgit2sharp@3d92ae4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3d92ae4

Browse files
committed
Rename DiffFixture to DiffTreeToTreeFixture
1 parent 9c18c19 commit 3d92ae4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

LibGit2Sharp.Tests/DiffFixture.cs renamed to LibGit2Sharp.Tests/DiffTreeToTreeFixture.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace LibGit2Sharp.Tests
77
{
8-
public class DiffFixture : BaseFixture
8+
public class DiffTreeToTreeFixture : BaseFixture
99
{
1010
//TODO Test binary files (do we have hunks/line callbacks)
1111
//TODO What does content contain when dealing with a Binary file?
@@ -21,6 +21,7 @@ public void ComparingATreeAgainstItselfReturnsNoDifference()
2121
TreeChanges changes = repo.Diff.Compare(tree, tree);
2222

2323
Assert.Empty(changes);
24+
Assert.Equal(string.Empty, changes.Patch);
2425
}
2526
}
2627

@@ -59,7 +60,7 @@ public void CanCompareACommitTreeAgainstItsParent()
5960

6061
Assert.Equal("1.txt", treeEntryChanges.Path);
6162
Assert.Equal(ChangeKind.Added, treeEntryChanges.Status);
62-
// Also in Added collection
63+
6364
Assert.Equal(treeEntryChanges, changes.Added.Single());
6465
Assert.Equal(1, treeEntryChanges.LinesAdded);
6566

LibGit2Sharp.Tests/LibGit2Sharp.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
<Compile Include="ConfigurationFixture.cs" />
4747
<Compile Include="AttributesFixture.cs" />
4848
<Compile Include="ObjectDatabaseFixture.cs" />
49-
<Compile Include="DiffFixture.cs" />
49+
<Compile Include="DiffTreeToTreeFixture.cs" />
5050
<Compile Include="RepositoryOptionsFixture.cs" />
5151
<Compile Include="ResetFixture.cs" />
5252
<Compile Include="LazyFixture.cs" />

0 commit comments

Comments
 (0)
0