Skip to content

Commit 4fe4da0

Browse files
committed
Fixed incosistent naming & style
1 parent e9e2684 commit 4fe4da0

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

test/MyTested.AspNetCore.Mvc.Controllers.ActionResults.Test/BuildersTests/ActionResultsTests/SignInTests/SignInTestBuilderTests.cs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,15 @@ public void ShouldReturnSignInShouldThrowExceptionIfResultIsSignInWithIncorrectA
2626
() =>
2727
{
2828
MyController<MvcController>
29-
.Instance()
30-
.Calling(c => c.SignInWithEmptyAuthenticationPropertiesAndScheme())
31-
.ShouldReturn()
32-
.SignIn(signIn => signIn
33-
.WithAuthenticationScheme(AuthenticationScheme.Digest));
29+
.Instance()
30+
.Calling(c => c.SignInWithEmptyAuthenticationPropertiesAndScheme())
31+
.ShouldReturn()
32+
.SignIn(signIn => signIn
33+
.WithAuthenticationScheme(AuthenticationScheme.Digest));
3434
},
3535
$"When calling {nameof(MvcController.SignInWithEmptyAuthenticationPropertiesAndScheme)} " +
36-
$"action in MvcController expected sign in result authentication scheme to be 'Digest', but instead received 'Basic'.");
36+
$"action in {nameof(MvcController)} expected sign in result " +
37+
$"authentication scheme to be 'Digest', but instead received 'Basic'.");
3738
}
3839

3940
[Fact]
@@ -65,7 +66,8 @@ public void ShouldReturnSignInShouldThrowExceptionWithInvalidAuthenticationPrope
6566
.WithAuthenticationProperties(authenticationProperties));
6667
},
6768
$"When calling {nameof(MvcController.SignInWithAuthenticationPropertiesAndScheme)} " +
68-
$"action in MvcController expected sign in result authentication properties to be the same as the provided one, but instead received different result.");
69+
$"action in {nameof(MvcController)} expected sign in result authentication properties " +
70+
$"to be the same as the provided one, but instead received different result.");
6971
}
7072

7173
[Fact]

test/MyTested.AspNetCore.Mvc.Controllers.ActionResults.Test/BuildersTests/ActionResultsTests/SignOutTests/SignOutTestBuilderTests.cs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ public void ShouldReturnSignOutShouldThrowExceptionIfResultIsSignOutWithIncorrec
3434
.ContainingAuthenticationScheme(AuthenticationScheme.Digest));
3535
},
3636
$"When calling {nameof(MvcController.SignOutWithAuthenticationSchemes)} " +
37-
$"action in MvcController expected sign out result authentication schemes to contain 'Digest', but none was found.");
37+
$"action in {nameof(MvcController)} expected sign out result " +
38+
$"authentication schemes to contain 'Digest', but none was found.");
3839
}
3940

4041
[Fact]
@@ -77,7 +78,8 @@ public void ShouldReturnSignOutShouldThrowExceptionIfResultIsNotSignOutWithIncor
7778
.ContainingAuthenticationSchemes(AuthenticationScheme.Digest, AuthenticationScheme.Basic));
7879
},
7980
$"When calling {nameof(MvcController.SignOutWithAuthenticationSchemes)} " +
80-
$"action in MvcController expected sign out result authentication schemes to contain 'Digest', but none was found.");
81+
$"action in {nameof(MvcController)} expected sign out result " +
82+
$"authentication schemes to contain 'Digest', but none was found.");
8183
}
8284

8385
[Fact]
@@ -94,7 +96,8 @@ public void ShouldReturnSignOutShouldThrowExceptionIfResultIsNotSignOutWithIncor
9496
.ContainingAuthenticationSchemes(AuthenticationScheme.Digest));
9597
},
9698
$"When calling {nameof(MvcController.SignOutWithAuthenticationSchemes)} " +
97-
$"action in MvcController expected sign out result authentication schemes to be 1, but instead found 2.");
99+
$"action in {nameof(MvcController)} expected sign out result " +
100+
$"authentication schemes to be 1, but instead found 2.");
98101
}
99102

100103
[Fact]
@@ -126,7 +129,8 @@ public void ShouldReturnSignOutShouldThrowExceptionWithInvalidAuthenticationProp
126129
.WithAuthenticationProperties(authenticationProperties));
127130
},
128131
$"When calling {nameof(MvcController.SignOutWithAuthenticationProperties)} " +
129-
$"action in MvcController expected sign out result authentication properties to be the same as the provided one, but instead received different result.");
132+
$"action in {nameof(MvcController)} expected sign out result " +
133+
$"authentication properties to be the same as the provided one, but instead received different result.");
130134
}
131135

132136
[Fact]

0 commit comments

Comments
 (0)