34 references to IsFailure
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (6)
Microsoft.AspNetCore.Identity.Specification.Tests (22)
UserManagerSpecificationTests.cs (17)
253IdentityResultAssert.IsFailure(await manager.SetUserNameAsync(newUser, ""), error);
257IdentityResultAssert.IsFailure(await manager.SetUserNameAsync(newUser, newUsername), error);
313IdentityResultAssert.IsFailure(await manager.SetEmailAsync(newUser, newEmail), _errorDescriber.DuplicateEmail(newEmail));
314IdentityResultAssert.IsFailure(await manager.SetEmailAsync(newUser, ""), _errorDescriber.InvalidEmail(""));
361IdentityResultAssert.IsFailure(await manager.CreateAsync(user), AlwaysBadValidator.ErrorMessage);
377IdentityResultAssert.IsFailure(await manager.UpdateAsync(user), AlwaysBadValidator.ErrorMessage);
394IdentityResultAssert.IsFailure(result, AlwaysBadValidator.ErrorMessage);
411IdentityResultAssert.IsFailure(await manager.CreateAsync(user), _errorDescriber.InvalidEmail(email));
426IdentityResultAssert.IsFailure(await manager.CreateAsync(user), _errorDescriber.InvalidEmail(email));
441IdentityResultAssert.IsFailure(await manager.AddPasswordAsync(user, "password"),
460IdentityResultAssert.IsFailure(result, AlwaysBadValidator.ErrorMessage);
529IdentityResultAssert.IsFailure(await manager.ChangePasswordAsync(user, "password", "new"),
545IdentityResultAssert.IsFailure(await manager.CreateAsync(user, "password"), AlwaysBadValidator.ErrorMessage);
845IdentityResultAssert.IsFailure(await manager.CreateAsync(user2), _errorDescriber.DuplicateUserName(username));
875IdentityResultAssert.IsFailure(await manager.CreateAsync(user2), _errorDescriber.DuplicateEmail("FooUser@yup.com"));
906IdentityResultAssert.IsFailure(result, _errorDescriber.LoginAlreadyAssociated());
1027IdentityResultAssert.IsFailure(await manager.ResetPasswordAsync(user, token, newPassword),
Microsoft.AspNetCore.Identity.Test (6)