Skip to content

Commit d925831

Browse files
committed
cleanup tests
1 parent b179214 commit d925831

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

LibGit2Sharp.Tests/IndexFixture.cs

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -480,16 +480,6 @@ public void RetrievingAssumedUnchangedMarkedIndexEntries()
480480
}
481481
}
482482

483-
[Fact]
484-
public void CanUpdateIndexWhenNothingHappened()
485-
{
486-
var path = SandboxAssumeUnchangedTestRepo();
487-
using (var repo = new Repository(path))
488-
{
489-
repo.Index.Update();
490-
}
491-
}
492-
493483
[Fact]
494484
public void IndexIsUpdatedAfterAddingFile()
495485
{
@@ -498,20 +488,17 @@ public void IndexIsUpdatedAfterAddingFile()
498488
var path = SandboxAssumeUnchangedTestRepo();
499489
using (var repo = new Repository(path))
500490
{
501-
// create a file on disk
491+
repo.Index.Clear();
492+
502493
Touch(repo.Info.WorkingDirectory, fileName, "hello test file\n");
503494

504-
repo.Index.Clear();
505495
repo.Index.Add(fileName);
506-
507496
var first = repo.Index[fileName].Id;
508497

509498
Touch(repo.Info.WorkingDirectory, fileName, "rewrite the file\n");
510-
511499
repo.Index.Update();
512500

513501
var second = repo.Index[fileName].Id;
514-
515502
Assert.NotEqual(first, second);
516503
}
517504
}

0 commit comments

Comments
 (0)