14 references to IsFailure
Microsoft.AspNetCore.Identity.Specification.Tests (10)
IdentitySpecificationTestBase.cs (1)
352
IdentityResultAssert.
IsFailure
(await manager.CreateAsync(role2));
UserManagerSpecificationTests.cs (9)
182
IdentityResultAssert.
IsFailure
(await manager.AddPasswordAsync(user, "password"));
475
IdentityResultAssert.
IsFailure
(await manager.ChangePasswordAsync(user, "password", "new"));
489
IdentityResultAssert.
IsFailure
(await manager.CreateAsync(user, "password"));
511
IdentityResultAssert.
IsFailure
(await manager.ResetPasswordAsync(user, token, newPassword));
1533
IdentityResultAssert.
IsFailure
(await manager.ChangeEmailAsync(user, "should@fail.com", token2));
1579
IdentityResultAssert.
IsFailure
(await manager.ChangeEmailAsync(user, newEmail, token1));
1760
IdentityResultAssert.
IsFailure
(await manager.RedeemTwoFactorRecoveryCodeAsync(user, code));
1766
IdentityResultAssert.
IsFailure
(await manager.RedeemTwoFactorRecoveryCodeAsync(user, code));
1789
IdentityResultAssert.
IsFailure
(await manager.RedeemTwoFactorRecoveryCodeAsync(user, code));
Microsoft.AspNetCore.Identity.Test (4)
PasswordValidatorTest.cs (1)
175
IdentityResultAssert.
IsFailure
(result);
UserManagerTest.cs (1)
998
IdentityResultAssert.
IsFailure
(await manager.CreateAsync(new PocoUser(), "password"));
UserValidatorTest.cs (2)
63
IdentityResultAssert.
IsFailure
(result);
91
IdentityResultAssert.
IsFailure
(result);