45 references to Contain
Microsoft.NET.Sdk.BlazorWebAssembly.AoT.Tests (4)
ServiceWorkerAssert.cs (2)
25
new FileInfo(serviceWorkerResolvedPath).Should().
Contain
(serviceWorkerContent);
29
new FileInfo(serviceWorkerResolvedPath).Should().
Contain
($"/* Manifest version: {assetsManifest.version} */");
WasmAoTPublishIntegrationTest.cs (2)
56
new FileInfo(Path.Combine(blazorPublishDirectory, "css", "app.css")).Should().
Contain
(".publish");
84
webConfig.Should().
Contain
(webConfigContents);
Microsoft.NET.Sdk.BlazorWebAssembly.Tests (25)
BlazorMultitargetIntegrationTest.cs (4)
26
serverDependencies.File("captured-references.txt").Should().
Contain
("Microsoft.AspNetCore.Components.Server.dll");
28
browserDependencies.File("captured-references.txt").Should().
Contain
("Microsoft.AspNetCore.Components.WebAssembly.dll");
46
serverDependencies.File("captured-references.txt").Should().
Contain
("Microsoft.AspNetCore.Components.Server.dll");
48
browserDependencies.File("captured-references.txt").Should().
Contain
("Microsoft.AspNetCore.Components.WebAssembly.dll");
ServiceWorkerAssert.cs (2)
25
new FileInfo(serviceWorkerResolvedPath).Should().
Contain
(serviceWorkerContent);
29
new FileInfo(serviceWorkerResolvedPath).Should().
Contain
($"/* Manifest version: {assetsManifest.version} */");
WasmBuildIntegrationTest.cs (3)
617
bootJsonPath.Should().
Contain
("\"Microsoft.CodeAnalysis.CSharp.wasm\"");
618
bootJsonPath.Should().
Contain
("\"fr\"");
619
bootJsonPath.Should().
Contain
("\"Microsoft.CodeAnalysis.CSharp.resources.wasm\"");
WasmPublishIntegrationTest.cs (16)
95
cssFile.Should().
Contain
(".publish");
201
new FileInfo(Path.Combine(blazorPublishDirectory, "css", "app.css")).Should().
Contain
(".publish");
251
new FileInfo(Path.Combine(blazorPublishDirectory, "css", "app.css")).Should().
Contain
(".publish");
271
webConfig.Should().
Contain
(webConfigContents);
570
bootJsonData.Should().
Contain
("\"Microsoft.CodeAnalysis.CSharp.wasm\"");
571
bootJsonData.Should().
Contain
("\"fr\"");
572
bootJsonData.Should().
Contain
("\"Microsoft.CodeAnalysis.CSharp.resources.wasm\"");
766
bootJsonData.Should().
Contain
("\"Microsoft.CodeAnalysis.CSharp.wasm\"");
767
bootJsonData.Should().
Contain
("\"fr\"");
768
bootJsonData.Should().
Contain
("\"Microsoft.CodeAnalysis.CSharp.resources.wasm\"");
1182
bootJsonData.Should().
Contain
("\"es-ES\"");
1183
bootJsonData.Should().
Contain
("\"ja\"");
1184
bootJsonData.Should().
Contain
("\"fr\"");
1185
bootJsonData.Should().
Contain
("\"classlibrarywithsatelliteassemblies.resources.wasm\"");
1186
bootJsonData.Should().
Contain
("\"blazorwasm.resources.wasm\"");
1187
bootJsonData.Should().
Contain
("\"Microsoft.CodeAnalysis.CSharp.resources.wasm\"");
Microsoft.NET.Sdk.Razor.Tests (7)
ApplicationPartDiscoveryIntegrationTest.cs (2)
28
new FileInfo(Path.Combine(intermediateOutputPath, "AppWithP2PReference.MvcApplicationPartsAssemblyInfo.cs")).Should().
Contain
("[assembly: Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartAttribute(\"ClassLibrary\")]");
64
new FileInfo(generatedAttributeFile).Should().
Contain
("[assembly: Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartAttribute(\"ClassLibrary\")]");
BuildIncrementalismTest.cs (2)
81
new FileInfo(tagHelperOutputCache).Should().
Contain
(@"""Name"":""MvcWithComponents.Views.Shared.NavMenu""");
100
new FileInfo(generatedFile).Should().
Contain
(updatedContent);
MvcBuildIntegrationTest21NetFx.cs (1)
37
Path.Combine(intermediateOutputPath, $"{TestProjectName}.TagHelpers.output.cache")).Should().
Contain
(
MvcBuildIntegrationTest22.cs (1)
39
new FileInfo(Path.Combine(intermediateOutputPath, $"{TestProjectName}.TagHelpers.output.cache")).Should().
Contain
(
MvcBuildIntegrationTestLegacy.cs (1)
42
Path.Combine(intermediateOutputPath, $"{TestProjectName}.TagHelpers.output.cache")).Should().
Contain
(
Microsoft.NET.Sdk.StaticWebAssets.Tests (9)
JsModulesIntegrationTest.cs (5)
230
file.Should().
Contain
("_content/AnotherClassLib/AnotherClassLib.lib.module.js");
231
file.Should().
Contain
("_content/ClassLibrary/ClassLibrary.lib.module.js");
275
file.Should().
Contain
("_content/AnotherClassLib/AnotherClassLib.lib.module.js");
333
modulesManifest.Should().
Contain
("_content/AnotherClassLib/AnotherClassLib.lib.module.js");
338
moduleFile.Should().
Contain
("console.log('Hello world AnotherClassLib publish')");
ScopedCssIntegrationTests.cs (4)
93
new FileInfo(scoped).Should().
Contain
("b-overridden");
96
new FileInfo(generated).Should().
Contain
("b-overridden");
491
appBundle.Should().
Contain
("_content/ClassLibrary/ClassLibrary.bundle.scp.css");
538
appBundle.Should().
Contain
("_content/ClassLibrary/ClassLibrary.bundle.scp.css");