From fc1dbbbcfd897a10148e0c682c34072f42abff69 Mon Sep 17 00:00:00 2001 From: Andrew Peters Date: Thu, 1 Jun 2017 14:15:02 -0700 Subject: [PATCH] Adds a missing ToList() in assert code. --- .../DatabaseErrorPageMiddlewareTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Diagnostics.EFCore.FunctionalTests/DatabaseErrorPageMiddlewareTest.cs b/test/Diagnostics.EFCore.FunctionalTests/DatabaseErrorPageMiddlewareTest.cs index 849d17e1..72c839db 100644 --- a/test/Diagnostics.EFCore.FunctionalTests/DatabaseErrorPageMiddlewareTest.cs +++ b/test/Diagnostics.EFCore.FunctionalTests/DatabaseErrorPageMiddlewareTest.cs @@ -335,7 +335,7 @@ public async Task Pass_thru_when_context_not_in_services() } }); - Assert.True(logProvider.Logger.Messages.Any(m => + Assert.True(logProvider.Logger.Messages.ToList().Any(m => m.StartsWith(StringsHelpers.GetResourceString("FormatDatabaseErrorPageMiddleware_ContextNotRegistered", typeof(BloggingContext))))); }