Beispiel #1
0
 private void ValidateLock(
     GVFSLock gvfsLock,
     NamedPipeMessages.LockData expected,
     string expectedStatus,
     string expectedGitCommand,
     bool expectedIsAvailable)
 {
     gvfsLock.GetStatus().ShouldEqual(expectedStatus);
     NamedPipeMessages.LockData existingHolder;
     gvfsLock.IsLockAvailableForExternalRequestor(out existingHolder).ShouldEqual(expectedIsAvailable);
     this.ValidateExistingExternalHolder(expected, existingHolder);
     gvfsLock.GetLockedGitCommand().ShouldEqual(expectedGitCommand);
     NamedPipeMessages.LockData externalHolder = gvfsLock.GetExternalHolder();
     this.ValidateExistingExternalHolder(expected, externalHolder);
 }