forked from libgit2/libgit2sharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMergeFixture.cs
More file actions
32 lines (29 loc) · 880 Bytes
/
Copy pathMergeFixture.cs
File metadata and controls
32 lines (29 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using LibGit2Sharp.Tests.TestHelpers;
using Xunit;
namespace LibGit2Sharp.Tests
{
public class MergeFixture : BaseFixture
{
[Fact]
public void ANewRepoIsFullyMerged()
{
SelfCleaningDirectory scd = BuildSelfCleaningDirectory();
using (var repo = Repository.Init(scd.DirectoryPath))
{
Assert.Equal(true, repo.Index.IsFullyMerged);
}
}
[Fact]
public void AFullyMergedRepoOnlyContainsStagedIndexEntries()
{
using (var repo = new Repository(StandardTestRepoWorkingDirPath))
{
Assert.Equal(true, repo.Index.IsFullyMerged);
foreach (var entry in repo.Index)
{
Assert.Equal(StageLevel.Staged, entry.StageLevel);
}
}
}
}
}