You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aspnetcore/test/razor-pages-tests.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -148,7 +148,7 @@ Another set of unit tests is responsible for tests of page model methods. In the
148
148
|`OnPostDeleteMessageAsync`| Executes `DeleteMessageAsync` to delete a message with the `Id` specified. |
149
149
|`OnPostAnalyzeMessagesAsync`| If one or more messages are in the database, calculates the average number of words per message. |
150
150
151
-
The page model methods are tested using seven tests in the `IndexPageTests` class (`tests/RazorPagesTestSample.Tests/UnitTests/IndexPageTests.cs`). The tests use the familiar Arrange-Assert-Act pattern. These tests focus on:
151
+
The page model methods are tested using seven tests in the `IndexPageTests` class (`tests/RazorPagesTestSample.Tests/UnitTests/IndexPageTests.cs`). The tests use the familiar Arrange-Act-Assert pattern. These tests focus on:
152
152
153
153
* Determining if the methods follow the correct behavior when the [ModelState](xref:Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary) is invalid.
154
154
* Confirming the methods produce the correct <xref:Microsoft.AspNetCore.Mvc.IActionResult>.
@@ -331,7 +331,7 @@ Another set of unit tests is responsible for tests of page model methods. In the
331
331
|`OnPostDeleteMessageAsync`| Executes `DeleteMessageAsync` to delete a message with the `Id` specified. |
332
332
|`OnPostAnalyzeMessagesAsync`| If one or more messages are in the database, calculates the average number of words per message. |
333
333
334
-
The page model methods are tested using seven tests in the `IndexPageTests` class (`tests/RazorPagesTestSample.Tests/UnitTests/IndexPageTests.cs`). The tests use the familiar Arrange-Assert-Act pattern. These tests focus on:
334
+
The page model methods are tested using seven tests in the `IndexPageTests` class (`tests/RazorPagesTestSample.Tests/UnitTests/IndexPageTests.cs`). The tests use the familiar Arrange-Act-Assert pattern. These tests focus on:
335
335
336
336
* Determining if the methods follow the correct behavior when the [ModelState](xref:Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary) is invalid.
337
337
* Confirming the methods produce the correct <xref:Microsoft.AspNetCore.Mvc.IActionResult>.
0 commit comments