Skip to content

Commit fb51fb5

Browse files
committed
Tweaked assertion comment.
1 parent c659b4a commit fb51fb5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

TestStack.FluentMVCTesting.Tests/ControllerResultTestTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ public void Check_for_invalid_partial_name()
313313
Assert.That(exception.Message, Is.EqualTo(string.Format("Expected result view to be '{0}', but instead was given '{1}'.", ControllerResultTestController.PartialName, ControllerResultTestController.RandomViewName)));
314314
}
315315
#endregion
316-
316+
317317
#region File tests
318318

319319
[Test]
@@ -394,7 +394,7 @@ public void Check_for_file_content_result_and_check_invalid_binary_content_and_c
394394
var exception = Assert.Throws<ActionResultAssertionException>(() =>
395395
_controller.WithCallTo(c => c.BinaryFile()).ShouldRenderFileContents(contents, contentType));
396396

397-
// When supplied with both an invalid content type and invalid content, test the content type first.
397+
// Assert that the content type validation occurs before that of the actual contents.
398398
Assert.That(exception.Message.Contains("content type"));
399399
}
400400

@@ -441,7 +441,7 @@ public void Check_for_file_content_result_and_check_invalid_textual_content_and_
441441
var exception = Assert.Throws<ActionResultAssertionException>(() =>
442442
_controller.WithCallTo(c => c.TextualFile()).ShouldRenderFileContents(contents, contentType));
443443

444-
// When supplied with both an invalid content type and invalid content, test the content type first.
444+
// Assert that the content type validation occurs before that of the actual contents.
445445
Assert.That(exception.Message.Contains("content type"));
446446
}
447447

@@ -529,7 +529,7 @@ public void Check_for_file_path_result_and_check_invalid_file_name_and_check_inv
529529
var exception = Assert.Throws<ActionResultAssertionException>(() =>
530530
_controller.WithCallTo(c => c.EmptyFilePath()).ShouldRenderFilePath(name, contentType));
531531

532-
// When supplied with both an invalid content type and invalid file name, test the content type first.
532+
// Assert that the content type validation occurs before that of the file name.
533533
Assert.That(exception.Message.Contains("content type"));
534534
}
535535

0 commit comments

Comments
 (0)