Skip to content

Commit f8486c4

Browse files
committed
Added documentation summary for custom exceptions
1 parent 3f3263f commit f8486c4

30 files changed

+99
-99
lines changed

src/MyTested.Mvc/Builders/Actions/ShouldReturn/ShouldReturnStatusCode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public IBaseTestBuilderWithActionResult<TActionResult> StatusCode(HttpStatusCode
4141

4242
private void ThrowNewHttpStatusCodeResultAssertionException(string propertyName, string expectedValue, string actualValue)
4343
{
44-
throw new HttpStatusCodeResultAssertionException(string.Format(
44+
throw new StatusCodeResultAssertionException(string.Format(
4545
"When calling {0} action in {1} expected status code result {2} {3}, but {4}.",
4646
this.ActionName,
4747
this.Controller.GetName(),

src/MyTested.Mvc/Exceptions/ActionCallAssertionException.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
using System;
44

55
/// <summary>
6-
/// Exception for invalid action call.
6+
/// <see cref="Exception"/> for invalid action call.
77
/// </summary>
88
public class ActionCallAssertionException : Exception
99
{
1010
/// <summary>
11-
/// Initializes a new instance of the ActionCallAssertionException class.
11+
/// Initializes a new instance of the <see cref="ActionCallAssertionException"/> class.
1212
/// </summary>
13-
/// <param name="message">Message for System.Exception class.</param>
13+
/// <param name="message">The message that describes the error.</param>
1414
public ActionCallAssertionException(string message)
1515
: base(message)
1616
{

src/MyTested.Mvc/Exceptions/ActionResultAssertionException.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
using System;
44

55
/// <summary>
6-
/// Exception for invalid action return type when expecting IActionResult.
6+
/// <see cref="Exception"/> for invalid action return type.
77
/// </summary>
88
public class ActionResultAssertionException : Exception
99
{
1010
/// <summary>
11-
/// Initializes a new instance of the ActionResultAssertionException class.
11+
/// Initializes a new instance of the <see cref="ActionResultAssertionException"/> class.
1212
/// </summary>
13-
/// <param name="message">Message for System.Exception class.</param>
13+
/// <param name="message">The message that describes the error.</param>
1414
public ActionResultAssertionException(string message)
1515
: base(message)
1616
{

src/MyTested.Mvc/Exceptions/AttributeAssertionException.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
using System;
44

55
/// <summary>
6-
/// Exception for invalid attributes.
6+
/// <see cref="Exception"/> for invalid <see cref="Attribute"/>.
77
/// </summary>
88
public class AttributeAssertionException : Exception
99
{
1010
/// <summary>
11-
/// Initializes a new instance of the AttributeAssertionException class.
11+
/// Initializes a new instance of the <see cref="AttributeAssertionException"/> class.
1212
/// </summary>
13-
/// <param name="message">Message for System.Exception class.</param>
13+
/// <param name="message">The message that describes the error.</param>
1414
public AttributeAssertionException(string message)
1515
: base(message)
1616
{

src/MyTested.Mvc/Exceptions/AuthenticationPropertiesAssertionException.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
using System;
44

55
/// <summary>
6-
/// Exception for invalid authentication properties call.
6+
/// <see cref="Exception"/> for invalid <see cref="Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties"/> assertion.
77
/// </summary>
88
public class AuthenticationPropertiesAssertionException : Exception
99
{
1010
/// <summary>
11-
/// Initializes a new instance of the AuthenticationPropertiesAssertionException class.
11+
/// Initializes a new instance of the <see cref="AuthenticationPropertiesAssertionException"/> class.
1212
/// </summary>
13-
/// <param name="message">Message for System.Exception class.</param>
13+
/// <param name="message">The message that describes the error.</param>
1414
public AuthenticationPropertiesAssertionException(string message)
1515
: base(message)
1616
{

src/MyTested.Mvc/Exceptions/BadRequestResultAssertionException.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
using System;
44

55
/// <summary>
6-
/// Exception for invalid bad request result.
6+
/// <see cref="Exception"/> for invalid <see cref="Microsoft.AspNetCore.Mvc.BadRequestResult"/> or <see cref="Microsoft.AspNetCore.Mvc.BadRequestObjectResult"/>.
77
/// </summary>
88
public class BadRequestResultAssertionException : Exception
99
{
1010
/// <summary>
11-
/// Initializes a new instance of the BadRequestResultAssertionException class.
11+
/// Initializes a new instance of the <see cref="BadRequestResultAssertionException"/> class.
1212
/// </summary>
13-
/// <param name="message">Message for System.Exception class.</param>
13+
/// <param name="message">The message that describes the error.</param>
1414
public BadRequestResultAssertionException(string message)
1515
: base(message)
1616
{

src/MyTested.Mvc/Exceptions/ChallengeResultAssertionException.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
using System;
44

55
/// <summary>
6-
/// Exception for invalid challenge result.
6+
/// <see cref="Exception"/> for invalid <see cref="Microsoft.AspNetCore.Mvc.ChallengeResult"/>.
77
/// </summary>
88
public class ChallengeResultAssertionException : Exception
99
{
1010
/// <summary>
11-
/// Initializes a new instance of the ContentResultAssertionException class.
11+
/// Initializes a new instance of the <see cref="ContentResultAssertionException"/> class.
1212
/// </summary>
13-
/// <param name="message">Message for System.Exception class.</param>
13+
/// <param name="message">The message that describes the error.</param>
1414
public ChallengeResultAssertionException(string message)
1515
: base(message)
1616
{

src/MyTested.Mvc/Exceptions/ContentResultAssertionException.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
using System;
44

55
/// <summary>
6-
/// Exception for invalid content result.
6+
/// <see cref="Exception"/> for invalid <see cref="Microsoft.AspNetCore.Mvc.ContentResult"/>.
77
/// </summary>
88
public class ContentResultAssertionException : Exception
99
{
1010
/// <summary>
11-
/// Initializes a new instance of the ContentResultAssertionException class.
11+
/// Initializes a new instance of the <see cref="ContentResultAssertionException"/> class.
1212
/// </summary>
13-
/// <param name="message">Message for System.Exception class.</param>
13+
/// <param name="message">The message that describes the error.</param>
1414
public ContentResultAssertionException(string message)
1515
: base(message)
1616
{

src/MyTested.Mvc/Exceptions/CreatedResultAssertionException.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
using System;
44

55
/// <summary>
6-
/// Exception for invalid created result.
6+
/// <see cref="Exception"/> for invalid <see cref="Microsoft.AspNetCore.Mvc.CreatedResult"/>, <see cref="Microsoft.AspNetCore.Mvc.CreatedAtActionResult"/> or <see cref="Microsoft.AspNetCore.Mvc.CreatedAtRouteResult"/>/>.
77
/// </summary>
88
public class CreatedResultAssertionException : Exception
99
{
1010
/// <summary>
11-
/// Initializes a new instance of the CreatedResultAssertionException class.
11+
/// Initializes a new instance of the <see cref="CreatedResultAssertionException"/> class.
1212
/// </summary>
13-
/// <param name="message">Message for System.Exception class.</param>
13+
/// <param name="message">The message that describes the error.</param>
1414
public CreatedResultAssertionException(string message)
1515
: base(message)
1616
{

src/MyTested.Mvc/Exceptions/DataProviderAssertionException.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
using System;
44

55
/// <summary>
6-
/// Exception for invalid data assertion.
6+
/// <see cref="Exception"/> for invalid data assertion.
77
/// </summary>
88
public class DataProviderAssertionException : Exception
99
{
1010
/// <summary>
11-
/// Initializes a new instance of the DataProviderAssertionException class.
11+
/// Initializes a new instance of the <see cref="DataProviderAssertionException"/> class.
1212
/// </summary>
13-
/// <param name="message">Message for System.Exception class.</param>
13+
/// <param name="message">The message that describes the error.</param>
1414
public DataProviderAssertionException(string message)
1515
: base(message)
1616
{

0 commit comments

Comments
 (0)