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