Skip to content

Commit 3a336dc

Browse files
committed
Clean up warnings.
1 parent 5195716 commit 3a336dc

File tree

3 files changed

+35
-1
lines changed

3 files changed

+35
-1
lines changed

src/FluentAssertions.AspNetCore.Mvc/AcceptedResultAssertions.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ public AcceptedResultAssertions(AcceptedResult subject) : base(subject)
3030
/// </summary>
3131
public object Value => AcceptedResultSubject.Value;
3232

33+
/// <summary>
34+
/// The location on the AcceptedResult
35+
/// </summary>
3336
public string Location => AcceptedResultSubject.Location;
3437

3538
#endregion

src/FluentAssertions.AspNetCore.Mvc/ChallengeResultAssertions.cs

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,44 @@ public ChallengeResultAssertions(object subject) : base(subject)
2929
#endregion
3030

3131
#region Public Properties
32+
/// <summary>
33+
/// The <see cref="ChallengeResult.Properties"/> that belongs to the ChallengeResult.
34+
/// </summary>
3235
public AuthenticationProperties AuthenticationProperties => ChallengeResultSubject.Properties;
36+
37+
/// <summary>
38+
/// The <see cref="AuthenticationProperties.Items"/> that belongs to the ChallengeResult.
39+
/// </summary>
3340
public IDictionary<string, string> Items => ChallengeResultSubject.Properties?.Items;
41+
42+
/// <summary>
43+
/// The <see cref="AuthenticationProperties.IsPersistent"/> that belongs to the ChallengeResult.
44+
/// </summary>
3445
public bool IsPersistent => ChallengeResultSubject.Properties?.IsPersistent ?? false;
46+
47+
/// <summary>
48+
/// The <see cref="AuthenticationProperties.RedirectUri"/> that belongs to the ChallengeResult.
49+
/// </summary>
3550
public string RedirectUri => ChallengeResultSubject.Properties?.RedirectUri;
51+
52+
/// <summary>
53+
/// The <see cref="AuthenticationProperties.IssuedUtc"/> that belongs to the ChallengeResult.
54+
/// </summary>
3655
public DateTimeOffset? IssuedUtc => ChallengeResultSubject.Properties?.IssuedUtc;
56+
57+
/// <summary>
58+
/// The <see cref="AuthenticationProperties.ExpiresUtc"/> that belongs to the ChallengeResult.
59+
/// </summary>
3760
public DateTimeOffset? ExpiresUtc => ChallengeResultSubject.Properties?.ExpiresUtc;
61+
62+
/// <summary>
63+
/// The <see cref="AuthenticationProperties.AllowRefresh"/> that belongs to the ChallengeResult.
64+
/// </summary>
3865
public bool? AllowRefresh => ChallengeResultSubject.Properties?.AllowRefresh;
66+
67+
/// <summary>
68+
/// The <see cref="ChallengeResult.AuthenticationSchemes"/> that belongs to the ChallengeResult.
69+
/// </summary>
3970
public IList<string> AuthenticationSchemes => ChallengeResultSubject.AuthenticationSchemes;
4071
#endregion
4172

tests/FluentAssertions.AspNetCore.Mvc.Tests/FileResultAssertions_Tests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class FileResultAssertions_Tests
1616
public void WithContentType_GivenExpectedValue_ShouldPass()
1717
{
1818
var actualValue = "text/plain";
19-
var expectedValue = string.Copy(actualValue);
19+
var expectedValue = actualValue;
2020
ActionResult result = TestDataGenerator.CreateFileContentResult(contentType: actualValue);
2121

2222
result.Should().BeFileResult().WithContentType(expectedValue);

0 commit comments

Comments
 (0)