63 references to ResourceFile
Microsoft.AspNetCore.Mvc.FunctionalTests (63)
BasicTests.cs (10)
48
await
ResourceFile
.ReadResourceAsync(_resourcesAssembly, outputFile, sourceFile: false);
58
ResourceFile
.UpdateOrVerify(_resourcesAssembly, outputFile, expectedContent, responseContent);
68
await
ResourceFile
.ReadResourceAsync(_resourcesAssembly, outputFile, sourceFile: false);
78
ResourceFile
.UpdateOrVerify(_resourcesAssembly, outputFile, expectedContent, responseContent);
91
await
ResourceFile
.ReadResourceAsync(_resourcesAssembly, outputFile, sourceFile: false);
102
ResourceFile
.UpdateOrVerify(_resourcesAssembly, outputFile, expectedContent, responseContent);
112
await
ResourceFile
.ReadResourceAsync(_resourcesAssembly, outputFile, sourceFile: false);
122
ResourceFile
.UpdateOrVerify(_resourcesAssembly, outputFile, expectedContent, responseContent);
131
await
ResourceFile
.ReadResourceAsync(_resourcesAssembly, outputFile, sourceFile: false);
140
ResourceFile
.UpdateOrVerify(_resourcesAssembly, outputFile, expectedContent, responseContent);
HtmlGenerationTest.cs (21)
105
await
ResourceFile
.ReadResourceAsync(_resourcesAssembly, outputFile, sourceFile: false);
119
ResourceFile
.UpdateOrVerify(_resourcesAssembly, outputFile, expectedContent, responseContent);
124
ResourceFile
.UpdateOrVerify(_resourcesAssembly, outputFile, expectedContent, responseContent, forgeryToken);
222
await
ResourceFile
.ReadResourceAsync(_resourcesAssembly, outputFile, sourceFile: false);
235
ResourceFile
.UpdateOrVerify(_resourcesAssembly, outputFile, expectedContent, responseContent);
262
await
ResourceFile
.ReadResourceAsync(_resourcesAssembly, outputFile, sourceFile: false);
276
ResourceFile
.UpdateOrVerify(_resourcesAssembly, outputFile, expectedContent, responseContent);
280
ResourceFile
.UpdateOrVerify(_resourcesAssembly, outputFile, expectedContent, responseContent, token: AntiforgeryTestHelper.RetrieveAntiforgeryToken(responseContent, antiforgeryPath));
302
await
ResourceFile
.ReadResourceAsync(_resourcesAssembly, outputFile, sourceFile: false);
313
ResourceFile
.UpdateOrVerify(_resourcesAssembly, outputFile, expectedContent, responseContent);
322
await
ResourceFile
.ReadResourceAsync(_resourcesAssembly, outputFile, sourceFile: false);
343
ResourceFile
.UpdateOrVerify(_resourcesAssembly, outputFile, expectedContent, responseContent, token: AntiforgeryTestHelper.RetrieveAntiforgeryToken(responseContent, "Customer/HtmlGeneration_Customer"));
419
await
ResourceFile
.ReadResourceAsync(_resourcesAssembly, outputFile1, sourceFile: false);
422
await
ResourceFile
.ReadResourceAsync(_resourcesAssembly, outputFile2, sourceFile: false);
425
await
ResourceFile
.ReadResourceAsync(_resourcesAssembly, outputFile3, sourceFile: false);
436
ResourceFile
.UpdateOrVerify(_resourcesAssembly, outputFile1, expected1, response1.Trim());
438
if (!
ResourceFile
.GenerateBaselines)
452
ResourceFile
.UpdateOrVerify(_resourcesAssembly, outputFile2, expected2, response3.Trim());
453
if (!
ResourceFile
.GenerateBaselines)
467
ResourceFile
.UpdateOrVerify(_resourcesAssembly, outputFile3, expected3, response5.Trim());
468
if (!
ResourceFile
.GenerateBaselines)
LinkGenerationTests.cs (2)
79
await
ResourceFile
.ReadResourceAsync(_resourcesAssembly, outputFile, sourceFile: false);
90
ResourceFile
.UpdateOrVerify(_resourcesAssembly, outputFile, expectedContent, responseContent);
RazorPagesTest.cs (2)
48
var expectedContent = await
ResourceFile
.ReadResourceAsync(_resourcesAssembly, outputFile, sourceFile: false);
59
ResourceFile
.UpdateOrVerify(_resourcesAssembly, outputFile, expectedContent, responseContent, forgeryToken);
RemoteAttributeValidationTest.cs (2)
41
await
ResourceFile
.ReadResourceAsync(_resourcesAssembly, outputFile, sourceFile: false);
53
ResourceFile
.UpdateOrVerify(_resourcesAssembly, outputFile, expectedContent, responseContent);
TagHelperComponentTagHelperTest.cs (6)
40
await
ResourceFile
.ReadResourceAsync(_resourcesAssembly, outputFile, sourceFile: false);
49
ResourceFile
.UpdateOrVerify(_resourcesAssembly, outputFile, expectedContent, responseContent);
60
await
ResourceFile
.ReadResourceAsync(_resourcesAssembly, outputFile, sourceFile: false);
69
ResourceFile
.UpdateOrVerify(_resourcesAssembly, outputFile, expectedContent, responseContent);
80
await
ResourceFile
.ReadResourceAsync(_resourcesAssembly, outputFile, sourceFile: false);
89
ResourceFile
.UpdateOrVerify(_resourcesAssembly, outputFile, expectedContent, responseContent);
TagHelpersTest.cs (14)
54
await
ResourceFile
.ReadResourceAsync(_resourcesAssembly, outputFile, sourceFile: false);
65
ResourceFile
.UpdateOrVerify(_resourcesAssembly, outputFile, expectedContent, responseContent);
91
await
ResourceFile
.ReadResourceAsync(_resourcesAssembly, outputFile, sourceFile: false);
102
ResourceFile
.UpdateOrVerify(_resourcesAssembly, outputFile, expectedContent, responseContent);
112
await
ResourceFile
.ReadResourceAsync(_resourcesAssembly, outputFile, sourceFile: false);
126
ResourceFile
.UpdateOrVerify(_resourcesAssembly, outputFile, expectedContent, responseContent, forgeryToken);
210
await
ResourceFile
.ReadResourceAsync(_resourcesAssembly, outputFile, sourceFile: false);
219
ResourceFile
.UpdateOrVerify(_resourcesAssembly, outputFile, expectedContent, responseContent);
228
await
ResourceFile
.ReadResourceAsync(_resourcesAssembly, outputFile, sourceFile: false);
247
ResourceFile
.UpdateOrVerify(_resourcesAssembly, outputFile, expectedContent, responseContent);
256
await
ResourceFile
.ReadResourceAsync(_resourcesAssembly, outputFile, sourceFile: false);
275
ResourceFile
.UpdateOrVerify(_resourcesAssembly, outputFile, expectedContent, responseContent);
289
await
ResourceFile
.ReadResourceAsync(_resourcesAssembly, outputFile, sourceFile: false);
297
ResourceFile
.UpdateOrVerify(_resourcesAssembly, outputFile, expectedContent, responseContent);
UrlResolutionTest.cs (4)
44
await
ResourceFile
.ReadResourceAsync(_resourcesAssembly, outputFile, sourceFile: false);
52
ResourceFile
.UpdateOrVerify(_resourcesAssembly, outputFile, expectedContent, responseContent);
61
await
ResourceFile
.ReadResourceAsync(_resourcesAssembly, outputFile, sourceFile: false);
69
ResourceFile
.UpdateOrVerify(_resourcesAssembly, outputFile, expectedContent, responseContent);
ViewEngineTests.cs (2)
442
var expectedContent = await
ResourceFile
.ReadResourceAsync(_assembly, outputFile, sourceFile: false);
449
ResourceFile
.UpdateOrVerify(_assembly, outputFile, expectedContent, responseContent);