22 references to GetResourceString
Diagnostics.EFCore.FunctionalTests (22)
DatabaseErrorPageMiddlewareTest.cs (18)
143
Assert.Contains(StringsHelpers.
GetResourceString
("DatabaseErrorPage_NoDbOrMigrationsTitle"), content);
144
Assert.Contains(StringsHelpers.
GetResourceString
("DatabaseErrorPage_NoDbOrMigrationsInfo"), content);
146
Assert.Contains(StringsHelpers.
GetResourceString
("DatabaseErrorPage_AddMigrationCommandPMC").Replace(">", ">"), content);
147
Assert.Contains(StringsHelpers.
GetResourceString
("DatabaseErrorPage_ApplyMigrationsCommandPMC").Replace(">", ">"), content);
205
Assert.Contains(StringsHelpers.
GetResourceString
("DatabaseErrorPage_PendingMigrationsTitle"), content);
206
Assert.Contains(StringsHelpers.
GetResourceString
("DatabaseErrorPage_PendingMigrationsInfo"), content);
208
Assert.Contains(StringsHelpers.
GetResourceString
("DatabaseErrorPage_ApplyMigrationsCommandPMC").Replace(">", ">"), content);
212
Assert.DoesNotContain(StringsHelpers.
GetResourceString
("DatabaseErrorPage_AddMigrationCommandPMC").Replace(">", ">"), content);
244
Assert.Contains(StringsHelpers.
GetResourceString
("DatabaseErrorPage_PendingChangesTitle"), content);
245
Assert.Contains(StringsHelpers.
GetResourceString
("DatabaseErrorPage_PendingChangesInfo"), content);
247
Assert.Contains(StringsHelpers.
GetResourceString
("DatabaseErrorPage_AddMigrationCommandCLI").Replace(">", ">"), content);
248
Assert.Contains(StringsHelpers.
GetResourceString
("DatabaseErrorPage_AddMigrationCommandPMC").Replace(">", ">"), content);
249
Assert.Contains(StringsHelpers.
GetResourceString
("DatabaseErrorPage_ApplyMigrationsCommandCLI").Replace(">", ">"), content);
250
Assert.Contains(StringsHelpers.
GetResourceString
("DatabaseErrorPage_ApplyMigrationsCommandPMC").Replace(">", ">"), content);
410
m.StartsWith(StringsHelpers.
GetResourceString
("FormatDatabaseErrorPageMiddleware_ContextNotRegistered", typeof(BloggingContext)), StringComparison.Ordinal));
458
m.StartsWith(StringsHelpers.
GetResourceString
("DatabaseErrorPageMiddleware_Exception"), StringComparison.Ordinal));
490
Assert.Contains(StringsHelpers.
GetResourceString
("DatabaseErrorPage_NoDbOrMigrationsTitle"), content);
491
Assert.Contains(StringsHelpers.
GetResourceString
("DatabaseErrorPage_NoDbOrMigrationsInfo"), content);
MigrationsEndPointMiddlewareTest.cs (4)
165
Assert.StartsWith(StringsHelpers.
GetResourceString
("MigrationsEndPointMiddleware_NoContextType"), content);
197
Assert.StartsWith(StringsHelpers.
GetResourceString
("FormatMigrationsEndPointMiddleware_ContextNotRegistered", typeName), content);
226
Assert.StartsWith(StringsHelpers.
GetResourceString
("FormatMigrationsEndPointMiddleware_ContextNotRegistered", typeof(BloggingContext).AssemblyQualifiedName), content);
264
Assert.StartsWith(StringsHelpers.
GetResourceString
("FormatMigrationsEndPointMiddleware_Exception", typeof(BloggingContextWithSnapshotThatThrows)), ex.Message);