34 references to IsFailure
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (6)
Microsoft.AspNetCore.Identity.Specification.Tests (22)
UserManagerSpecificationTests.cs (17)
252IdentityResultAssert.IsFailure(await manager.SetUserNameAsync(newUser, ""), error);
256IdentityResultAssert.IsFailure(await manager.SetUserNameAsync(newUser, newUsername), error);
312IdentityResultAssert.IsFailure(await manager.SetEmailAsync(newUser, newEmail), _errorDescriber.DuplicateEmail(newEmail));
313IdentityResultAssert.IsFailure(await manager.SetEmailAsync(newUser, ""), _errorDescriber.InvalidEmail(""));
360IdentityResultAssert.IsFailure(await manager.CreateAsync(user), AlwaysBadValidator.ErrorMessage);
376IdentityResultAssert.IsFailure(await manager.UpdateAsync(user), AlwaysBadValidator.ErrorMessage);
393IdentityResultAssert.IsFailure(result, AlwaysBadValidator.ErrorMessage);
410IdentityResultAssert.IsFailure(await manager.CreateAsync(user), _errorDescriber.InvalidEmail(email));
425IdentityResultAssert.IsFailure(await manager.CreateAsync(user), _errorDescriber.InvalidEmail(email));
440IdentityResultAssert.IsFailure(await manager.AddPasswordAsync(user, "password"),
459IdentityResultAssert.IsFailure(result, AlwaysBadValidator.ErrorMessage);
528IdentityResultAssert.IsFailure(await manager.ChangePasswordAsync(user, "password", "new"),
544IdentityResultAssert.IsFailure(await manager.CreateAsync(user, "password"), AlwaysBadValidator.ErrorMessage);
844IdentityResultAssert.IsFailure(await manager.CreateAsync(user2), _errorDescriber.DuplicateUserName(username));
874IdentityResultAssert.IsFailure(await manager.CreateAsync(user2), _errorDescriber.DuplicateEmail("FooUser@yup.com"));
905IdentityResultAssert.IsFailure(result, _errorDescriber.LoginAlreadyAssociated());
1026IdentityResultAssert.IsFailure(await manager.ResetPasswordAsync(user, token, newPassword),
Microsoft.AspNetCore.Identity.Test (6)