diff --git a/test/AspNetCore.Identity.MongoDbCore.IntegrationTests/Specification/IdentitySpecificationTestBase.cs b/test/AspNetCore.Identity.MongoDbCore.IntegrationTests/Specification/IdentitySpecificationTestBase.cs index f50abb4..64d1078 100644 --- a/test/AspNetCore.Identity.MongoDbCore.IntegrationTests/Specification/IdentitySpecificationTestBase.cs +++ b/test/AspNetCore.Identity.MongoDbCore.IntegrationTests/Specification/IdentitySpecificationTestBase.cs @@ -489,7 +489,7 @@ namespace Microsoft.AspNetCore.Identity.Test foreach (var r in roles) { var expectedRoleName = await roleManager.GetRoleNameAsync(r); - Assert.True(rs.Any(role => role == expectedRoleName)); + Assert.Contains(rs, role => role == expectedRoleName); } } }