Skip to content

Commit

Permalink
Test names corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
mehyaa authored and raman-m committed Oct 19, 2024
1 parent a414e02 commit 5446853
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/Ocelot.UnitTests/Infrastructure/ScopesAuthorizerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public ScopesAuthorizerTests()
}

[Fact]
public void Should_return_ok_if_no_allowed_scopes()
public void should_return_ok_if_no_allowed_scopes()
{
this.Given(_ => GivenTheFollowing(new ClaimsPrincipal()))
.And(_ => GivenTheFollowing(new List<string>()))
Expand All @@ -31,7 +31,7 @@ public void Should_return_ok_if_no_allowed_scopes()
}

[Fact]
public void Should_return_ok_if_null_allowed_scopes()
public void should_return_ok_if_null_allowed_scopes()
{
this.Given(_ => GivenTheFollowing(new ClaimsPrincipal()))
.And(_ => GivenTheFollowing((List<string>)null))
Expand All @@ -41,7 +41,7 @@ public void Should_return_ok_if_null_allowed_scopes()
}

[Fact]
public void Should_return_error_if_claims_parser_returns_error()
public void should_return_error_if_claims_parser_returns_error()
{
var fakeError = new FakeError();
this.Given(_ => GivenTheFollowing(new ClaimsPrincipal()))
Expand All @@ -53,7 +53,7 @@ public void Should_return_error_if_claims_parser_returns_error()
}

[Fact]
public void Should_match_scopes_and_return_ok_result()
public void should_match_scopes_and_return_ok_result()
{
var claimsPrincipal = new ClaimsPrincipal();
var allowedScopes = new List<string> { "someScope" };
Expand All @@ -67,7 +67,7 @@ public void Should_match_scopes_and_return_ok_result()
}

[Fact]
public void Should_not_match_scopes_and_return_error_result()
public void should_not_match_scopes_and_return_error_result()
{
var fakeError = new FakeError();
var claimsPrincipal = new ClaimsPrincipal();
Expand Down

0 comments on commit 5446853

Please sign in to comment.