Skip to content

Commit

Permalink
Code gardening
Browse files Browse the repository at this point in the history
  • Loading branch information
sailro committed Dec 18, 2023
1 parent 223eb24 commit 9351af8
Showing 1 changed file with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace PrimaryConstructorAnalyzer.Test;
public class PrimaryConstructorAnalyzerUnitTest
{
[TestMethod]
public async Task TestRegularCtorAsync()
public Task TestRegularCtorAsync()
{
const string test = """
class Foo
Expand All @@ -18,11 +18,11 @@ public Foo(int i) {
}
""";

await VerifyCS.VerifyAnalyzerAsync(test);
return VerifyCS.VerifyAnalyzerAsync(test);
}

[TestMethod]
public async Task TestPrimaryCtorParameterReadAsync()
public Task TestPrimaryCtorParameterReadAsync()
{
const string test = """
class Foo(int i)
Expand All @@ -33,11 +33,11 @@ void Bar() {
}
""";

await VerifyCS.VerifyAnalyzerAsync(test);
return VerifyCS.VerifyAnalyzerAsync(test);
}

[TestMethod]
public async Task TestPrimaryCtorParameterAssignmentAsync()
public Task TestPrimaryCtorParameterAssignmentAsync()
{
const string test = """
class Foo(int i, string bar)
Expand All @@ -62,11 +62,11 @@ void Bar() {
.WithArguments("bar")
};

await VerifyCS.VerifyAnalyzerAsync(test, diagnostics);
return VerifyCS.VerifyAnalyzerAsync(test, diagnostics);
}

[TestMethod]
public async Task TestPrimaryCtorParameterIncrementAsync()
public Task TestPrimaryCtorParameterIncrementAsync()
{
const string test = """
class Foo(int i, string bar)
Expand All @@ -82,11 +82,11 @@ void Bar() {
.WithLocation(4, 9)
.WithArguments("i");

await VerifyCS.VerifyAnalyzerAsync(test, diagnostic);
return VerifyCS.VerifyAnalyzerAsync(test, diagnostic);
}

[TestMethod]
public async Task TestPrimaryCtorParameterPostUnaryIncrementAsync()
public Task TestPrimaryCtorParameterPostUnaryIncrementAsync()
{
const string test = """
class Foo(int i, string bar)
Expand All @@ -102,11 +102,11 @@ void Bar() {
.WithLocation(4, 9)
.WithArguments("i");

await VerifyCS.VerifyAnalyzerAsync(test, diagnostic);
return VerifyCS.VerifyAnalyzerAsync(test, diagnostic);
}

[TestMethod]
public async Task TestPrimaryCtorParameterPreUnaryDecrementAsync()
public Task TestPrimaryCtorParameterPreUnaryDecrementAsync()
{
const string test = """
class Foo(int i, string bar)
Expand All @@ -122,11 +122,11 @@ void Bar() {
.WithLocation(4, 11)
.WithArguments("i");

await VerifyCS.VerifyAnalyzerAsync(test, diagnostic);
return VerifyCS.VerifyAnalyzerAsync(test, diagnostic);
}

[TestMethod]
public async Task TestPrimaryCtorParameterWithOutArgumentInvocationAsync()
public Task TestPrimaryCtorParameterWithOutArgumentInvocationAsync()
{
const string test = """
class Foo(int c)
Expand All @@ -144,11 +144,11 @@ public void Baz() {
.WithLocation(6, 17)
.WithArguments("c");

await VerifyCS.VerifyAnalyzerAsync(test, diagnostic);
return VerifyCS.VerifyAnalyzerAsync(test, diagnostic);
}

[TestMethod]
public async Task TestPrimaryCtorParameterWithRefArgumentInvocationAsync()
public Task TestPrimaryCtorParameterWithRefArgumentInvocationAsync()
{
const string test = """
class Foo(int c)
Expand All @@ -166,6 +166,6 @@ public void Baz() {
.WithLocation(6, 20)
.WithArguments("c");

await VerifyCS.VerifyAnalyzerAsync(test, diagnostic);
return VerifyCS.VerifyAnalyzerAsync(test, diagnostic);
}
}

0 comments on commit 9351af8

Please # to comment.