Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit ccf6e20

Browse files
author
Meaghan Lewis
committed
Fix errors where void return type
1 parent 21495eb commit ccf6e20

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

test/UnitTests/GitHub.App/Services/PullRequestServiceTests.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ public async Task ExtractBase_MergeBaseAvailable_UseMergeBaseSha()
291291
}
292292

293293
[Test]
294-
public async void MergeBaseNotAvailable_ThrowsNotFoundException()
294+
public async Task MergeBaseNotAvailable_ThrowsNotFoundException()
295295
{
296296
var baseFileContent = "baseFileContent";
297297
var headFileContent = "headFileContent";
@@ -497,7 +497,7 @@ public void CreatePullRequestAllArgsMandatory()
497497
public class TheCheckoutMethod
498498
{
499499
[Test]
500-
public async void ShouldCheckoutExistingBranch()
500+
public async Task ShouldCheckoutExistingBranch()
501501
{
502502
var gitClient = MockGitClient();
503503
var service = new PullRequestService(
@@ -520,7 +520,7 @@ public async void ShouldCheckoutExistingBranch()
520520
}
521521

522522
[Test]
523-
public async void ShouldCheckoutLocalBranch()
523+
public async Task ShouldCheckoutLocalBranch()
524524
{
525525
var gitClient = MockGitClient();
526526
var service = new PullRequestService(
@@ -547,7 +547,7 @@ public async void ShouldCheckoutLocalBranch()
547547
}
548548

549549
[Test]
550-
public async void ShouldCheckoutBranchFromFork()
550+
public async Task ShouldCheckoutBranchFromFork()
551551
{
552552
var gitClient = MockGitClient();
553553
var service = new PullRequestService(
@@ -577,7 +577,7 @@ public async void ShouldCheckoutBranchFromFork()
577577
}
578578

579579
[Test]
580-
public async void ShouldUseUniquelyNamedRemoteForFork()
580+
public async Task ShouldUseUniquelyNamedRemoteForFork()
581581
{
582582
var gitClient = MockGitClient();
583583
var gitService = MockGitService();

test/UnitTests/GitHub.App/ViewModels/Dialog/RepositoryCreationViewModelTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ public void IsPopulatedByTheRepositoryHost()
361361
public class TheGitIgnoreTemplatesProperty : TestBaseClass
362362
{
363363
[Test]
364-
public async void IsPopulatedByTheApiAndSortedWithRecommendedFirst()
364+
public async Task IsPopulatedByTheApiAndSortedWithRecommendedFirst()
365365
{
366366
var gitIgnoreTemplates = new[]
367367
{
@@ -399,7 +399,7 @@ public async void IsPopulatedByTheApiAndSortedWithRecommendedFirst()
399399
public class TheLicensesProperty : TestBaseClass
400400
{
401401
[Test]
402-
public async void IsPopulatedByTheModelService()
402+
public async Task IsPopulatedByTheModelService()
403403
{
404404
var licenses = new[]
405405
{
@@ -439,7 +439,7 @@ public async void IsPopulatedByTheModelService()
439439
public class TheSelectedGitIgnoreProperty : TestBaseClass
440440
{
441441
[Test]
442-
public async void DefaultsToVisualStudio()
442+
public async Task DefaultsToVisualStudio()
443443
{
444444
var gitignores = new[]
445445
{

test/UnitTests/GitHub.Exports/LocalRepositoryModelTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ static void SetupRepository(string sha)
6767
[TestCase(22, LinkType.Blame, true, "[email protected]/foo/bar", "123123", @"src\dir\ThisIsFile1.cs", -1, -1, "https://github.com/foo/bar/blame/123123/src/dir/ThisIsFile1.cs")]
6868
[TestCase(23, LinkType.Blame, true, "https://github.com/foo/bar", "123123", @"src\dir\file1.cs", -1, -1, "https://github.com/foo/bar/blame/123123/src/dir/file1.cs")]
6969
[TestCase(24, LinkType.Blame, false, "https://github.com/foo/bar", "123123", "", 1, 2, "https://github.com/foo/bar/commit/123123")]
70-
public async void GenerateUrl(int testid, LinkType linkType, bool createRootedPath, string baseUrl, string sha, string path, int startLine, int endLine, string expected)
70+
public async Task GenerateUrl(int testid, LinkType linkType, bool createRootedPath, string baseUrl, string sha, string path, int startLine, int endLine, string expected)
7171
{
7272
using (var temp = new TempDirectory())
7373
{

0 commit comments

Comments
 (0)