Skip to content

Commit 30f5641

Browse files
committed
Merge branch 'bugfix/NotFoundTest' into develop
When fixing the bug in the `[TopicValidator]` attribute's `NotFound` handler, I neglected to update a unit test to ensure that it correctly accounted for the change in result type. That is fixed in this commit.
2 parents 7a7b72e + 4ff3713 commit 30f5641

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

OnTopic.AspNetCore.Mvc.Tests/ValidateTopicAttributeTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public void InvalidControllerType_ThrowsException() {
111111
| TEST: NULL TOPIC: RETURNS NOT FOUND
112112
\-------------------------------------------------------------------------------------------------------------------------*/
113113
/// <summary>
114-
/// Ensures that a <see cref="NotFoundObjectResult"/> is thrown if the <see cref="TopicController.CurrentTopic"/> is null.
114+
/// Ensures that a <see cref="NotFoundResult"/> is thrown if the <see cref="TopicController.CurrentTopic"/> is null.
115115
/// </summary>
116116
[Fact]
117117
public void NullTopic_ReturnsNotFound() {
@@ -124,7 +124,7 @@ public void NullTopic_ReturnsNotFound() {
124124

125125
controller.Dispose();
126126

127-
Assert.IsType<NotFoundObjectResult>(context.Result);
127+
Assert.IsType<NotFoundResult>(context.Result);
128128

129129
}
130130

0 commit comments

Comments
 (0)