public void CallbackForUnmatchedExplicitPathsIsCalledWhenSet(string relativePath, FileStatus currentStatus) { var callback = new AssertUnmatchedPathspecsCallbackIsCalled(); using (var repo = new Repository(StandardTestRepoPath)) { Assert.Equal(currentStatus, repo.Index.RetrieveStatus(relativePath)); repo.Diff.Compare(new[] { relativePath }, false, new ExplicitPathsOptions { ShouldFailOnUnmatchedPath = false, OnUnmatchedPath = callback.OnUnmatchedPath }); Assert.True(callback.WasCalled); } }