@@ -44,7 +44,7 @@ public void CanFetchIntoAnEmptyRepository(string url)
4444 }
4545
4646 // Perform the actual fetch
47- new Commands.Fetch(repo, remoteName, new string[0], new FetchOptions { OnUpdateTips = expectedFetchState.RemoteUpdateTipsHandler }, null).Run( );
47+ Commands.Fetch(repo, remoteName, new string[0], new FetchOptions { OnUpdateTips = expectedFetchState.RemoteUpdateTipsHandler }, null);
4848
4949 // Verify the expected
5050 expectedFetchState.CheckUpdatedReferences(repo);
@@ -64,10 +64,10 @@ public void CanFetchIntoAnEmptyRepositoryWithCredentials()
6464 repo.Network.Remotes.Add(remoteName, Constants.PrivateRepoUrl);
6565
6666 // Perform the actual fetch
67- new Commands.Fetch(repo, remoteName, new string[0], new FetchOptions
67+ Commands.Fetch(repo, remoteName, new string[0], new FetchOptions
6868 {
6969 CredentialsProvider = Constants.PrivateRepoCredentials
70- }, null).Run() ;
70+ }, null);
7171 }
7272 }
7373
@@ -101,10 +101,10 @@ public void CanFetchAllTagsIntoAnEmptyRepository(string url)
101101 }
102102
103103 // Perform the actual fetch
104- new Commands.Fetch(repo, remoteName, new string[0], new FetchOptions {
104+ Commands.Fetch(repo, remoteName, new string[0], new FetchOptions {
105105 TagFetchMode = TagFetchMode.All,
106106 OnUpdateTips = expectedFetchState.RemoteUpdateTipsHandler
107- }, null).Run() ;
107+ }, null);
108108
109109 // Verify the expected
110110 expectedFetchState.CheckUpdatedReferences(repo);
@@ -147,10 +147,10 @@ public void CanFetchCustomRefSpecsIntoAnEmptyRepository(string url, string local
147147 }
148148
149149 // Perform the actual fetch
150- new Commands.Fetch(repo, remoteName, new string[] { refSpec }, new FetchOptions {
150+ Commands.Fetch(repo, remoteName, new string[] { refSpec }, new FetchOptions {
151151 TagFetchMode = TagFetchMode.None,
152152 OnUpdateTips = expectedFetchState.RemoteUpdateTipsHandler
153- }, null).Run() ;
153+ }, null);
154154
155155 // Verify the expected
156156 expectedFetchState.CheckUpdatedReferences(repo);
@@ -181,7 +181,7 @@ public void FetchRespectsConfiguredAutoTagSetting(TagFetchMode tagFetchMode, int
181181 r => r.TagFetchMode = tagFetchMode);
182182
183183 // Perform the actual fetch.
184- new Commands.Fetch(repo, remoteName, new string[0], null, null).Run( );
184+ Commands.Fetch(repo, remoteName, new string[0], null, null);
185185
186186 // Verify the number of fetched tags.
187187 Assert.Equal(expectedTagCount, repo.Tags.Count());
@@ -199,7 +199,7 @@ public void CanFetchAllTagsAfterAnInitialClone()
199199
200200 using (var repo = new Repository(clonedRepoPath))
201201 {
202- new Commands.Fetch(repo, "origin", new string[0], new FetchOptions { TagFetchMode = TagFetchMode.All }, null).Run( );
202+ Commands.Fetch(repo, "origin", new string[0], new FetchOptions { TagFetchMode = TagFetchMode.All }, null);
203203 }
204204 }
205205
@@ -225,17 +225,17 @@ public void FetchHonorsTheFetchPruneConfigurationEntry()
225225
226226 // No pruning when the configuration entry isn't defined
227227 Assert.Null(clonedRepo.Config.Get<bool>("fetch.prune"));
228- new Commands.Fetch(clonedRepo, "origin", new string[0], null, null).Run( );
228+ Commands.Fetch(clonedRepo, "origin", new string[0], null, null);
229229 Assert.Equal(5, clonedRepo.Branches.Count(b => b.IsRemote));
230230
231231 // No pruning when the configuration entry is set to false
232232 clonedRepo.Config.Set<bool>("fetch.prune", false);
233- new Commands.Fetch(clonedRepo, "origin", new string[0], null, null).Run( );
233+ Commands.Fetch(clonedRepo, "origin", new string[0], null, null);
234234 Assert.Equal(5, clonedRepo.Branches.Count(b => b.IsRemote));
235235
236236 // Auto pruning when the configuration entry is set to true
237237 clonedRepo.Config.Set<bool>("fetch.prune", true);
238- new Commands.Fetch(clonedRepo, "origin", new string[0], null, null).Run( );
238+ Commands.Fetch(clonedRepo, "origin", new string[0], null, null);
239239 Assert.Equal(4, clonedRepo.Branches.Count(b => b.IsRemote));
240240 }
241241 }
0 commit comments