IdentityResultAssert Class

Definition

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.

Applies to