public void Pull_OneChangeset_InvokesIncomingHookOnce() { if (IsUsingPersistentClient) { Assert.Inconclusive("Hook tests does not function correctly under the persistent client"); return; } Repo1.Init(); Repo2.Clone(Repo1.Path); WriteTextFileAndCommit(Repo1, "test.txt", "dummy", "dummy", true); Repo2.SetHook("incoming"); var command = new CustomCommand("pull") .WithAdditionalArgument(string.Format(CultureInfo.InvariantCulture, "\"{0}\"", Repo1.Path)); Repo2.Execute(command); Assert.That(command.RawExitCode, Is.EqualTo(0)); Assert.That(command.RawStandardOutput.Count("Revision:"), Is.EqualTo(1)); Assert.That(command.RawStandardOutput.Count("Url:"), Is.EqualTo(1)); Assert.That(command.RawStandardOutput.Count("Source:"), Is.EqualTo(1)); }