IdentityResultAssert Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Helper for tests to validate identity results.
public ref class IdentityResultAssert abstract sealed
public static class IdentityResultAssert
type IdentityResultAssert = class
Public Class IdentityResultAssert
- Inheritance
-
IdentityResultAssert
Methods
| IsFailure(IdentityResult) |
Asserts that the result has not Succeeded. |
| IsFailure(IdentityResult, IdentityError) |
Asserts that the result has not Succeeded and that first error matches error's code and Description. |
| IsFailure(IdentityResult, String) |
Asserts that the result has not Succeeded and that error is the first Error's Description. |
| IsSuccess(IdentityResult) |
Asserts that the result has Succeeded. |
| VerifyLogMessage(ILogger, String) |
Asserts that the logger contains the expectedLog. |