From 9f3d044d173ecbf5342533c6704e6525e3dad1ec Mon Sep 17 00:00:00 2001 From: alexandre-spieser Date: Sun, 22 Oct 2017 02:28:58 +0000 Subject: [PATCH] removing warnings. --- .../Specification/IdentitySpecificationTestBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } }