659 references to Should
dotnet.Tests (34)
CommandTests\Pack\PackTests.cs (5)
82outputPackage.Should().Exist(); 100outputPackage.Should().Exist(); 124outputPackage.Should().Exist(); 134symbolsPackage.Should().Exist(); 387outputPackage.Should().Exist();
CommandTests\Run\RunFileTests.cs (6)
1137new FileInfo(binaryLogPath).Should().Exist(); 1598new DirectoryInfo(testInstance.Path).File("msbuild.binlog").Should().Exist(); 1725packageDir.File("MyFileBasedTool.1.0.0.nupkg").Should().Exist(); 1769new DirectoryInfo(outputDir).File("MyFileBasedTool.1.0.0.nupkg").Should().Exist(); 1797dllFile.Should().Exist(); 1807dllFile.Should().NotExist();
CommandTests\Workload\Clean\GivenDotnetWorkloadClean.cs (1)
169new FileInfo(extraPackRecordPath).Should().NotExist();
CommandTests\Workload\Install\WorkloadGarbageCollectionTests.cs (22)
66PackRecord(pack, "6.0.100").Should().NotExist(); 67PackRecord(pack, "6.0.300").Should().NotExist(); 72PackRecord(pack, "6.0.100").Should().NotExist(); 73PackRecord(pack, "6.0.300").Should().Exist(); 159ManifestRecord("testmanifest", "1.0.0", "6.0.100", "6.0.300").Should().NotExist(); 160ManifestRecord("testmanifest", "2.0.0", "6.0.300", "6.0.300").Should().NotExist(); 161ManifestRecord("testmanifest", "3.0.0", "6.0.300", "6.0.300").Should().Exist(); 163new FileInfo(Path.Combine(_dotnetRoot, "sdk-manifests", "6.0.100", "testmanifest", "1.0.0", "WorkloadManifest.json")).Should().NotExist(); 164new FileInfo(Path.Combine(_dotnetRoot, "sdk-manifests", "6.0.300", "testmanifest", "2.0.0", "WorkloadManifest.json")).Should().NotExist(); 165new FileInfo(Path.Combine(_dotnetRoot, "sdk-manifests", "6.0.300", "testmanifest", "3.0.0", "WorkloadManifest.json")).Should().Exist(); 171PackRecord(pack, "6.0.300").Should().NotExist(); 177PackRecord(pack, "6.0.300").Should().Exist(); 239ManifestRecord("testmanifest", "1.0.0", "6.0.100", "6.0.300").Should().NotExist(); 240ManifestRecord("testmanifest", "2.0.0", "6.0.300", "6.0.300").Should().Exist(); 241ManifestRecord("testmanifest", "3.0.0", "6.0.300", "6.0.300").Should().NotExist(); 243new FileInfo(Path.Combine(_dotnetRoot, "sdk-manifests", "6.0.100", "testmanifest", "1.0.0", "WorkloadManifest.json")).Should().NotExist(); 244new FileInfo(Path.Combine(_dotnetRoot, "sdk-manifests", "6.0.300", "testmanifest", "2.0.0", "WorkloadManifest.json")).Should().Exist(); 245new FileInfo(Path.Combine(_dotnetRoot, "sdk-manifests", "6.0.300", "testmanifest", "3.0.0", "WorkloadManifest.json")).Should().NotExist(); 251PackRecord(pack, "6.0.300").Should().NotExist(); 257PackRecord(pack, "6.0.300").Should().Exist(); 273new FileInfo(pack.Path).Should().Exist(); 277new FileInfo(pack.Path).Should().NotExist();
Microsoft.DotNet.PackageInstall.Tests (2)
EndToEndToolTests.cs (2)
39new FileInfo(shimPath).Should().Exist(); 72new FileInfo(shimPath).Should().Exist();
Microsoft.NET.Build.Tests (18)
ArtifactsOutputPathTests.cs (14)
94.Should() 116.Should() 119.Should() 141.Should() 144.Should() 185.Should() 306new FileInfo(Path.Combine(testAsset.Path, "artifacts", "package", "release", testProject.Name + ".1.0.0.nupkg")).Should().Exist(); 347.Should() 362.Should() 378.Should() 394.Should() 410.Should() 530new FileInfo(Path.Combine(testAsset.Path, "MSBuildSdk", "bin", "Debug", ToolsetInfo.CurrentTargetFramework, "MSBuildSdk.dll")).Should().Exist(); 531new FileInfo(Path.Combine(testAsset.Path, "MSBuildSdk", "obj", "Debug", ToolsetInfo.CurrentTargetFramework, "MSBuildSdk.dll")).Should().Exist();
GivenThatWeWantMSBuildToRespectCustomCulture.cs (2)
26new FileInfo(Path.Combine(outputDirectory, "test-1", "MSBuildCultureResourceGeneration.resources.dll")).Should().Exist(); 27new FileInfo(Path.Combine(outputDirectory, "test-2", "MSBuildCultureResourceGeneration.resources.dll")).Should().Exist();
GivenThatWeWantToUseContentFiles.cs (2)
114fileInfo.Should().Exist(); 116fileInfo.Should().NotExist();
Microsoft.NET.Pack.Tests (4)
GivenThatWeWantToPackAHelloWorldProject.cs (2)
124new FileInfo(expectedAssetPath).Should().Exist(); 156new FileInfo(expectedAssetPath).Should().Exist();
SolutionPackTests.cs (2)
37new FileInfo(Path.Combine(packageOutputPath, testProject1.Name + ".1.0.0.nupkg")).Should().Exist(); 38new FileInfo(Path.Combine(packageOutputPath, testProject1.Name + ".1.0.0.nupkg")).Should().Exist();
Microsoft.NET.Publish.Tests (2)
GivenThatWeWantToPublishIncrementally.cs (2)
337new FileInfo(Path.Combine(publishDir, expectedFile)).Should().Exist(); 344new FileInfo(Path.Combine(publishDir, unexpectedFile)).Should().NotExist();
Microsoft.NET.Sdk.BlazorWebAssembly.AoT.Tests (8)
ServiceWorkerAssert.cs (3)
25new FileInfo(serviceWorkerResolvedPath).Should().Contain(serviceWorkerContent); 29new FileInfo(serviceWorkerResolvedPath).Should().Contain($"/* Manifest version: {assetsManifest.version} */"); 53new FileInfo(filePath).Should().HashEquals(expectedHash);
WasmAoTPublishIntegrationTest.cs (4)
56new FileInfo(Path.Combine(blazorPublishDirectory, "css", "app.css")).Should().Contain(".publish"); 83webConfig.Should().Exist(); 84webConfig.Should().Contain(webConfigContents); 117new FileInfo(Path.Combine(publishDirectory.ToString(), "blazorhosted.dll")).Should().Exist();
WasmPublishIntegrationTestBase.cs (1)
57new FileInfo(Path.Combine(testAsset.TestRoot, relativePath)).Should().HashEquals(ParseWebFormattedHash(hash));
Microsoft.NET.Sdk.BlazorWebAssembly.Tests (207)
BlazorLegacyIntegrationTest50.cs (10)
26new FileInfo(Path.Combine(clientBuildOutputDirectory, "wwwroot", "_framework", "blazor.boot.json")).Should().Exist(); 27new FileInfo(Path.Combine(clientBuildOutputDirectory, "wwwroot", "_framework", "blazor.webassembly.js")).Should().Exist(); 28new FileInfo(Path.Combine(clientBuildOutputDirectory, "wwwroot", "_framework", "dotnet.wasm")).Should().Exist(); 29new FileInfo(Path.Combine(clientBuildOutputDirectory, "wwwroot", "_framework", "dotnet.timezones.blat")).Should().Exist(); 30new FileInfo(Path.Combine(clientBuildOutputDirectory, "wwwroot", "_framework", "dotnet.wasm.gz")).Should().Exist(); 31new FileInfo(Path.Combine(clientBuildOutputDirectory, "wwwroot", "_framework", $"{testAsset}.Client.dll")).Should().Exist(); 34new FileInfo(Path.Combine(serverBuildOutputDirectory, $"{testAsset}.Server.dll")).Should().Exist(); 35new FileInfo(Path.Combine(serverBuildOutputDirectory, $"{testAsset}.Client.dll")).Should().Exist(); 36new FileInfo(Path.Combine(serverBuildOutputDirectory, $"{testAsset}.Shared.dll")).Should().Exist(); 41fileInfo.Should().Exist();
BlazorLegacyIntegrationTest60.cs (10)
34new FileInfo(Path.Combine(clientBuildOutputDirectory, "wwwroot", "_framework", "blazor.boot.json")).Should().Exist(); 35new FileInfo(Path.Combine(clientBuildOutputDirectory, "wwwroot", "_framework", "blazor.webassembly.js")).Should().Exist(); 36new FileInfo(Path.Combine(clientBuildOutputDirectory, "wwwroot", "_framework", "dotnet.wasm")).Should().Exist(); 37new FileInfo(Path.Combine(clientBuildOutputDirectory, "wwwroot", "_framework", "dotnet.timezones.blat")).Should().Exist(); 38new FileInfo(Path.Combine(clientBuildOutputDirectory, "wwwroot", "_framework", "dotnet.wasm.gz")).Should().Exist(); 39new FileInfo(Path.Combine(clientBuildOutputDirectory, "wwwroot", "_framework", $"{testAsset}.Client.dll")).Should().Exist(); 42new FileInfo(Path.Combine(serverBuildOutputDirectory, $"{testAsset}.Server.dll")).Should().Exist(); 43new FileInfo(Path.Combine(serverBuildOutputDirectory, $"{testAsset}.Client.dll")).Should().Exist(); 44new FileInfo(Path.Combine(serverBuildOutputDirectory, $"{testAsset}.Shared.dll")).Should().Exist(); 86new FileInfo(path).Should().Exist();
BlazorMultitargetIntegrationTest.cs (8)
25serverDependencies.File("captured-references.txt").Should().NotContain("Microsoft.AspNetCore.Components.WebAssembly.dll"); 26serverDependencies.File("captured-references.txt").Should().Contain("Microsoft.AspNetCore.Components.Server.dll"); 28browserDependencies.File("captured-references.txt").Should().Contain("Microsoft.AspNetCore.Components.WebAssembly.dll"); 29browserDependencies.File("captured-references.txt").Should().NotContain("Microsoft.AspNetCore.Components.Server.dll"); 45serverDependencies.File("captured-references.txt").Should().NotContain("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"); 49browserDependencies.File("captured-references.txt").Should().NotContain("Microsoft.AspNetCore.Components.Server.dll");
BlazorWasmStaticWebAssetsIntegrationTest.cs (10)
40new FileInfo(path).Should().Exist(); 46new FileInfo(finalPath).Should().Exist(); 81new FileInfo(path).Should().Exist(); 117new FileInfo(path).Should().Exist(); 123new FileInfo(finalPath).Should().Exist(); 161new FileInfo(path).Should().Exist(); 201new FileInfo(path).Should().Exist(); 245new FileInfo(path).Should().Exist(); 252new FileInfo(finalPath).Should().Exist(); 300new FileInfo(path).Should().Exist();
ServiceWorkerAssert.cs (3)
25new FileInfo(serviceWorkerResolvedPath).Should().Contain(serviceWorkerContent); 29new FileInfo(serviceWorkerResolvedPath).Should().Contain($"/* Manifest version: {assetsManifest.version} */"); 53new FileInfo(filePath).Should().HashEquals(expectedHash);
VanillaWasmTests.cs (4)
31new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "dotnet.js")).Should().Exist(); 32new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", WasmBootConfigFileName)).Should().Exist(); 33new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "blazor.webassembly.js")).Should().NotExist(); 34new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "dotnet.native.wasm")).Should().Exist();
WasmBuildIncrementalismTest.cs (4)
148new FileInfo(satelliteAssemblyFile).Should().Exist(); 190new FileInfo(satelliteAssemblyFile).Should().NotExist(); 202new FileInfo(satelliteAssemblyFile).Should().Exist(); 241new FileInfo(satelliteAssemblyFile).Should().Exist();
WasmBuildIntegrationTest.cs (77)
46new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", WasmBootConfigFileName)).Should().Exist(); 47new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "blazor.webassembly.js")).Should().Exist(); 48new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "dotnet.native.wasm")).Should().Exist(); 49new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "dotnet.native.wasm.gz")).Should().Exist(); 50new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "blazorwasm-minimal.wasm")).Should().Exist(); 75new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", WasmBootConfigFileName)).Should().Exist(); 76new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "blazor.webassembly.js")).Should().Exist(); 77new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "dotnet.native.wasm")).Should().Exist(); 78new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "dotnet.native.wasm.gz")).Should().Exist(); 79new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "blazorwasm.wasm")).Should().Exist(); 80new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "System.Text.Json.wasm")).Should().Exist(); 81new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "System.Text.Json.wasm.gz")).Should().Exist(); 82new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "System.wasm")).Should().Exist(); 83new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "System.wasm.gz")).Should().Exist(); 85new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "blazorwasm.pdb")).Should().Exist(); 86new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "RazorClassLibrary.pdb")).Should().Exist(); 87new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "RazorClassLibrary.wasm")).Should().Exist(); 127new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", WasmBootConfigFileName)).Should().Exist(); 128new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "blazor.webassembly.js")).Should().Exist(); 129new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "dotnet.native.wasm")).Should().Exist(); 130new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "dotnet.native.wasm.gz")).Should().Exist(); 131new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "blazorwasm.wasm")).Should().Exist(); 132new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "System.Text.Json.wasm")).Should().Exist(); 133new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "System.Text.Json.wasm.gz")).Should().Exist(); 134new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "System.wasm")).Should().Exist(); 135new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "System.wasm.gz")).Should().Exist(); 137new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "blazorwasm.pdb")).Should().Exist(); 138new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "RazorClassLibrary.pdb")).Should().Exist(); 139new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "RazorClassLibrary.wasm")).Should().Exist(); 165new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", WasmBootConfigFileName)).Should().Exist(); 166new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "blazor.webassembly.js")).Should().Exist(); 167new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "dotnet.native.wasm")).Should().Exist(); 168new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "dotnet.native.wasm.gz")).Should().Exist(); 169new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "blazorwasm.wasm")).Should().Exist(); 170new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "System.Text.Json.wasm")).Should().Exist(); 171new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "System.Text.Json.wasm.gz")).Should().Exist(); 172new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "System.wasm")).Should().Exist(); 173new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "System.wasm.gz")).Should().Exist(); 175new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "blazorwasm.pdb")).Should().Exist(); 176new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "RazorClassLibrary.pdb")).Should().Exist(); 177new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "RazorClassLibrary.wasm")).Should().Exist(); 299new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "dotnet.native.wasm")).Should().Exist(); 300new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "dotnet.timezones.blat")).Should().NotExist(); 333new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "dotnet.native.wasm")).Should().Exist(); 334new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", fullIcuFilename)).Should().NotExist(); 337new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", shardFilename)).Should().NotExist(); 371new FileInfo(Path.Combine(publishOutputDirectory, "wwwroot", "_framework", "dotnet.native.wasm")).Should().Exist(); 372new FileInfo(Path.Combine(publishOutputDirectory, "wwwroot", "_framework", fullIcuFilename)).Should().NotExist(); 375new FileInfo(Path.Combine(publishOutputDirectory, "wwwroot", "_framework", shardFilename)).Should().NotExist(); 414new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "dotnet.native.wasm")).Should().Exist(); 415new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", customIcuFilename)).Should().Exist(); 416new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", fullIcuFilename)).Should().NotExist(); 419new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", shardFilename)).Should().NotExist(); 457new FileInfo(Path.Combine(publishDirectory, "wwwroot", "_framework", "dotnet.native.wasm")).Should().Exist(); 458new FileInfo(Path.Combine(publishDirectory, "wwwroot", "_framework", customIcuFilename)).Should().Exist(); 459new FileInfo(Path.Combine(publishDirectory, "wwwroot", "_framework", fullIcuFilename)).Should().NotExist(); 462new FileInfo(Path.Combine(publishDirectory, "wwwroot", "_framework", shardFilename)).Should().NotExist(); 500new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "dotnet.native.wasm")).Should().Exist(); 501new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", fullIcuFilename)).Should().Exist(); 504new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", shardFilename)).Should().NotExist(); 542new FileInfo(Path.Combine(publishDirectory, "wwwroot", "_framework", "dotnet.native.wasm")).Should().Exist(); 543new FileInfo(Path.Combine(publishDirectory, "wwwroot", "_framework", fullIcuFilename)).Should().Exist(); 546new FileInfo(Path.Combine(publishDirectory, "wwwroot", "_framework", shardFilename)).Should().NotExist(); 562new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "_bin", "blazorwasm.wasm")).Should().NotExist(); 598new FileInfo(path).Should().Exist(); 604new FileInfo(finalPath).Should().Exist(); 611new FileInfo(Path.Combine(outputPath, "wwwroot", "_framework", "blazorwasm.wasm")).Should().Exist(); 612new FileInfo(Path.Combine(outputPath, "wwwroot", "_framework", "classlibrarywithsatelliteassemblies.wasm")).Should().Exist(); 613new FileInfo(Path.Combine(outputPath, "wwwroot", "_framework", "Microsoft.CodeAnalysis.CSharp.wasm")).Should().Exist(); 614new FileInfo(Path.Combine(outputPath, "wwwroot", "_framework", "fr", "Microsoft.CodeAnalysis.CSharp.resources.wasm")).Should().Exist(); 617bootJsonPath.Should().Contain("\"Microsoft.CodeAnalysis.CSharp.wasm\""); 618bootJsonPath.Should().Contain("\"fr\""); 619bootJsonPath.Should().Contain("\"Microsoft.CodeAnalysis.CSharp.resources.wasm\""); 656referenceAssemblyPath.Should().Exist(); 697fileInWwwroot.Should().Exist(); 739referenceAssemblyPath.Should().Exist(); 777fileInWwwroot.Should().Exist();
WasmJsModulesIntegrationTests.cs (23)
38new FileInfo(path).Should().Exist(); 43blazorBootJson.Should().Exist(); 52new FileInfo(Path.Combine(outputPath, "wwwroot", "blazorwasm-minimal.modules.json")).Should().NotExist(); 83new FileInfo(path).Should().Exist(); 88blazorBootJson.Should().Exist(); 100new FileInfo(Path.Combine(outputPath, "wwwroot", "blazorhosted.modules.json")).Should().NotExist(); 127new FileInfo(path).Should().Exist(); 132blazorBootJson.Should().Exist(); 141new FileInfo(Path.Combine(outputPath, "wwwroot", "blazorwasm-minimal.modules.json")).Should().NotExist(); 144lib.Should().Exist(); 191new FileInfo(path).Should().Exist(); 195new FileInfo(Path.Combine(outputPath, "wwwroot", "blazorwasm-minimal.modules.json")).Should().NotExist(); 197lib.Should().Exist(); 247new FileInfo(path).Should().Exist(); 254new FileInfo(Path.Combine(outputPath, "wwwroot", "blazorwasm-minimal.modules.json")).Should().NotExist(); 256lib.Should().Exist(); 262extension.Should().Exist(); 318new FileInfo(path).Should().Exist(); 324new FileInfo(Path.Combine(outputPath, "wwwroot", "blazorhosted.modules.json")).Should().Exist(); 326lib.Should().Exist(); 332extension.Should().Exist(); 343blazorBootJson.Should().Exist(); 355blazorBootJson.Should().Exist();
WasmPublishIntegrationTest.cs (54)
94cssFile.Should().Exist(); 95cssFile.Should().Contain(".publish"); 148new FileInfo(Path.Combine(publishOutputDirectory, "wwwroot", "_framework", WasmBootConfigFileName)).Should().Exist(); 149new FileInfo(Path.Combine(publishOutputDirectory, "wwwroot", "_framework", "blazor.webassembly.js")).Should().Exist(); 150new FileInfo(Path.Combine(publishOutputDirectory, "wwwroot", "_framework", "dotnet.native.wasm")).Should().Exist(); 151new FileInfo(Path.Combine(publishOutputDirectory, "wwwroot", "_framework", "dotnet.native.wasm.gz")).Should().Exist(); 152new FileInfo(Path.Combine(publishOutputDirectory, "wwwroot", "_framework", "blazorwasm.wasm")).Should().Exist(); 153new FileInfo(Path.Combine(publishOutputDirectory, "wwwroot", "_framework", "System.Text.Json.wasm")).Should().Exist(); 154new FileInfo(Path.Combine(publishOutputDirectory, "wwwroot", "_framework", "System.Text.Json.wasm.gz")).Should().Exist(); 155new FileInfo(Path.Combine(publishOutputDirectory, "wwwroot", "_framework", "System.Private.CoreLib.wasm")).Should().Exist(); 156new FileInfo(Path.Combine(publishOutputDirectory, "wwwroot", "_framework", "System.Private.CoreLib.wasm.gz")).Should().Exist(); 158new FileInfo(Path.Combine(publishOutputDirectory, "wwwroot", "_framework", "RazorClassLibrary.wasm")).Should().Exist(); 201new FileInfo(Path.Combine(blazorPublishDirectory, "css", "app.css")).Should().Contain(".publish"); 251new FileInfo(Path.Combine(blazorPublishDirectory, "css", "app.css")).Should().Contain(".publish"); 270webConfig.Should().Exist(); 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\""); 801new FileInfo(Path.Combine(publishDirectory.ToString(), "blazorhosted.dll")).Should().Exist(); 897new FileInfo(Path.Combine(publishDirectory.ToString(), "blazorhosted.dll")).Should().Exist(); 962new FileInfo(Path.Combine(publishDirectory.ToString(), "blazorhosted.dll")).Should().Exist(); 1059new FileInfo(Path.Combine(publishDirectory.ToString(), "blazorhosted.dll")).Should().Exist(); 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\""); 1491new FileInfo(Path.Combine(publishOutputDirectory, "wwwroot", "_framework", "dotnet.native.wasm")).Should().Exist(); 1492new FileInfo(Path.Combine(publishOutputDirectory, "wwwroot", "_framework", "icudt.dat")).Should().NotExist(); 1493new FileInfo(Path.Combine(publishOutputDirectory, "wwwroot", "_framework", "icudt_CJK.dat")).Should().NotExist(); 1494new FileInfo(Path.Combine(publishOutputDirectory, "wwwroot", "_framework", "icudt_EFIGS.dat")).Should().NotExist(); 1495new FileInfo(Path.Combine(publishOutputDirectory, "wwwroot", "_framework", "icudt_no_CJK.dat")).Should().NotExist(); 1518new FileInfo(Path.Combine(publishOutputDirectory, "BlazorMultipleApps.Server.dll")).Should().Exist(); 1519new FileInfo(Path.Combine(publishOutputDirectory, "BlazorMultipleApps.FirstClient.dll")).Should().Exist(); 1520new FileInfo(Path.Combine(publishOutputDirectory, "BlazorMultipleApps.SecondClient.dll")).Should().Exist(); 1525new FileInfo(firstCss).Should().Exist(); 1526new FileInfo(firstCss).Should().Exist("/* First app.css */"); 1537new FileInfo(Path.Combine(firstAppPublishDirectory, "_framework", "dotnet.native.wasm.br")).Should().Exist(); 1538new FileInfo(Path.Combine(firstAppPublishDirectory, "_framework", "BlazorMultipleApps.FirstClient.wasm.br")).Should().Exist(); 1539new FileInfo(Path.Combine(firstAppPublishDirectory, "_framework", "Newtonsoft.Json.wasm.br")).Should().Exist(); 1544new FileInfo(secondCss).Should().Exist(); 1545new FileInfo(secondCss).Should().Exist("/* Second app.css */"); 1553new FileInfo(Path.Combine(secondAppPublishDirectory, "_framework", "dotnet.native.wasm.br")).Should().Exist(); 1554new FileInfo(Path.Combine(secondAppPublishDirectory, "_framework", "BlazorMultipleApps.SecondClient.wasm.br")).Should().Exist(); 1555new FileInfo(Path.Combine(secondAppPublishDirectory, "_framework", "System.Private.CoreLib.wasm.br")).Should().Exist(); 1556new FileInfo(Path.Combine(secondAppPublishDirectory, "_framework", "Newtonsoft.Json.wasm.br")).Should().NotExist(); 1571referenceAssemblyPath.Should().Exist(); 1612fileInWwwroot.Should().Exist(); 1626new FileInfo(assemblyPath).Should().Exist();
WasmPublishIntegrationTestBase.cs (1)
57new FileInfo(Path.Combine(testAsset.TestRoot, relativePath)).Should().HashEquals(ParseWebFormattedHash(hash));
WasmPwaManifestTests.cs (3)
41new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", WasmBootConfigFileName)).Should().Exist(); 42new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "dotnet.native.wasm")).Should().Exist(); 43new FileInfo(Path.Combine(buildOutputDirectory, "wwwroot", "_framework", "blazorwasm.wasm")).Should().Exist();
Microsoft.NET.Sdk.Razor.Tests (159)
ApplicationPartDiscoveryIntegrationTest.cs (3)
27new FileInfo(Path.Combine(intermediateOutputPath, "AppWithP2PReference.MvcApplicationPartsAssemblyInfo.cs")).Should().Exist(); 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 (14)
41new FileInfo(Path.Combine(intermediateOutputPath, "SimpleMvc.dll")).Should().Exist(); 42new FileInfo(Path.Combine(intermediateOutputPath, "SimpleMvc.Views.dll")).Should().NotExist(); 45new FileInfo(Path.Combine(intermediateOutputPath, "Razor", "Views", "Home", "Index.cshtml.g.cs")).Should().NotExist(); 72new FileInfo(outputFile).Should().Exist(); 75new FileInfo(generatedDefinitionFile).Should().Exist(); 77new FileInfo(generatedFile).Should().Exist(); 80new FileInfo(tagHelperOutputCache).Should().Exist(); 81new FileInfo(tagHelperOutputCache).Should().Contain(@"""Name"":""MvcWithComponents.Views.Shared.NavMenu"""); 94new FileInfo(generatedDefinitionFile).Should().Exist(); 97new FileInfo(generatedFile).Should().Exist(); 100new FileInfo(generatedFile).Should().Contain(updatedContent); 126new FileInfo(classLibraryDll).Should().Exist(); 127new FileInfo(classLibraryViewsDll).Should().Exist(); 128new FileInfo(markerFile).Should().Exist();
BuildIntegrationTest.cs (36)
35new FileInfo(Path.Combine(outputPath, "SimpleMvc.dll")).Should().Exist(); 36new FileInfo(Path.Combine(outputPath, "SimpleMvc.pdb")).Should().Exist(); 37new FileInfo(Path.Combine(outputPath, "SimpleMvc.Views.dll")).Should().NotExist(); 38new FileInfo(Path.Combine(outputPath, "SimpleMvc.Views.pdb")).Should().NotExist(); 52new FileInfo(Path.Combine(outputPath, "SimpleMvc.dll")).Should().Exist(); 53new FileInfo(Path.Combine(outputPath, "SimpleMvc.pdb")).Should().Exist(); 54new FileInfo(Path.Combine(outputPath, "SimpleMvc.Views.dll")).Should().NotExist(); 55new FileInfo(Path.Combine(outputPath, "SimpleMvc.Views.pdb")).Should().NotExist(); 83new FileInfo(Path.Combine(intermediateOutputPath, "SimpleMvc.dll")).Should().NotExist(); 97new FileInfo(Path.Combine(outputPath, "AppWithP2PReference.dll")).Should().Exist(); 98new FileInfo(Path.Combine(outputPath, "AppWithP2PReference.pdb")).Should().Exist(); 99new FileInfo(Path.Combine(outputPath, "AppWithP2PReference.Views.dll")).Should().NotExist(); 100new FileInfo(Path.Combine(outputPath, "AppWithP2PReference.Views.pdb")).Should().NotExist(); 101new FileInfo(Path.Combine(outputPath, "ClassLibrary.dll")).Should().Exist(); 102new FileInfo(Path.Combine(outputPath, "ClassLibrary.pdb")).Should().Exist(); 103new FileInfo(Path.Combine(outputPath, "ClassLibrary.Views.dll")).Should().NotExist(); 104new FileInfo(Path.Combine(outputPath, "ClassLibrary.Views.pdb")).Should().NotExist(); 119new FileInfo(Path.Combine(outputPath, "SimpleMvc.deps.json")).Should().Exist(); 149new FileInfo(Path.Combine(outputPath, "refs", "mscorlib.dll")).Should().Exist(); 182new FileInfo(razorAssemblyInfo).Should().NotExist(); 183new FileInfo(Path.Combine(intermediateOutputPath, "SimpleMvc.RazorTargetAssemblyInfo.cs")).Should().NotExist(); 207new FileInfo(Path.Combine(outputPath, "AppWithP2PReference.dll")).Should().Exist(); 208new FileInfo(Path.Combine(outputPath, "AppWithP2PReference.Views.dll")).Should().NotExist(); 209new FileInfo(Path.Combine(outputPath, "ClassLibrary.dll")).Should().Exist(); 210new FileInfo(Path.Combine(outputPath, "ClassLibrary.Views.dll")).Should().NotExist(); 211new FileInfo(Path.Combine(outputPath, "AnotherClassLib.dll")).Should().Exist(); 212new FileInfo(Path.Combine(outputPath, "AnotherClassLib.Views.dll")).Should().NotExist(); 246new FileInfo(Path.Combine(outputPath, "AppWithP2PReference.dll")).Should().Exist(); 247new FileInfo(Path.Combine(outputPath, "AppWithP2PReference.Views.dll")).Should().NotExist(); 248new FileInfo(Path.Combine(outputPath, "ClassLibrary.dll")).Should().Exist(); 249new FileInfo(Path.Combine(outputPath, "ClassLibrary.Views.dll")).Should().NotExist(); 250new FileInfo(Path.Combine(outputPath, "ClassLibraryMvc21.dll")).Should().Exist(); 251new FileInfo(Path.Combine(outputPath, "ClassLibraryMvc21.Views.dll")).Should().Exist(); 265new FileInfo(Path.Combine(intermediateOutputPath, "SimpleMvc.dll")).Should().Exist(); 266new FileInfo(Path.Combine(intermediateOutputPath, "SimpleMvc.Views.dll")).Should().NotExist(); 267new FileInfo(Path.Combine(intermediateOutputPath, "SimpleMvc.Views.pdb")).Should().NotExist();
BuildWithComponents31IntegrationTest.cs (4)
21new FileInfo(Path.Combine(outputPath, "blazor31.dll")).Should().Exist(); 22new FileInfo(Path.Combine(outputPath, "blazor31.pdb")).Should().Exist(); 23new FileInfo(Path.Combine(outputPath, "blazor31.Views.dll")).Should().Exist(); 24new FileInfo(Path.Combine(outputPath, "blazor31.Views.pdb")).Should().Exist();
BuildWithComponentsIntegrationTest.cs (8)
30new FileInfo(Path.Combine(outputPath, "ComponentLibrary.dll")).Should().Exist(); 31new FileInfo(Path.Combine(outputPath, "ComponentLibrary.pdb")).Should().Exist(); 33new FileInfo(Path.Combine(outputPath, "ComponentLibrary.Views.dll")).Should().NotExist(); 34new FileInfo(Path.Combine(outputPath, "ComponentLibrary.Views.pdb")).Should().NotExist(); 47new FileInfo(Path.Combine(outputPath, "MvcWithComponents.dll")).Should().Exist(); 48new FileInfo(Path.Combine(outputPath, "MvcWithComponents.pdb")).Should().Exist(); 49new FileInfo(Path.Combine(outputPath, "MvcWithComponents.Views.dll")).Should().NotExist(); 50new FileInfo(Path.Combine(outputPath, "MvcWithComponents.Views.pdb")).Should().NotExist();
DesignTimeBuildIntegrationTest.cs (4)
30new FileInfo(Path.Combine(outputPath, "SimpleMvc.dll")).Should().NotExist(); 31new FileInfo(Path.Combine(outputPath, "SimpleMvc.pdb")).Should().NotExist(); 32new FileInfo(Path.Combine(outputPath, "SimpleMvc.Views.dll")).Should().NotExist(); 33new FileInfo(Path.Combine(outputPath, "SimpleMvc.Views.pdb")).Should().NotExist();
MvcBuildIntegrationTest21NetFx.cs (13)
28new FileInfo(Path.Combine(outputPath, OutputFileName)).Should().Exist(); 29new FileInfo(Path.Combine(outputPath, $"{TestProjectName}.pdb")).Should().Exist(); 30new FileInfo(Path.Combine(outputPath, $"{TestProjectName}.Views.dll")).Should().Exist(); 31new FileInfo(Path.Combine(outputPath, $"{TestProjectName}.Views.pdb")).Should().Exist(); 34new FileInfo(Path.Combine(intermediateOutputPath, $"{TestProjectName}.TagHelpers.input.cache")).Should().Exist(); 35new FileInfo(Path.Combine(intermediateOutputPath, $"{TestProjectName}.TagHelpers.output.cache")).Should().Exist(); 37Path.Combine(intermediateOutputPath, $"{TestProjectName}.TagHelpers.output.cache")).Should().Contain( 71new FileInfo(Path.Combine(outputPath, OutputFileName)).Should().Exist(); 72new FileInfo(Path.Combine(outputPath, $"{TestProjectName}.pdb")).Should().Exist(); 73new FileInfo(Path.Combine(outputPath, $"{TestProjectName}.Views.dll")).Should().Exist(); 74new FileInfo(Path.Combine(outputPath, $"{TestProjectName}.Views.pdb")).Should().Exist(); 92new FileInfo(Path.Combine(outputPath, "refs", "System.Threading.Tasks.Extensions.dll")).Should().Exist(); 108depsFile.Should().Exist();
MvcBuildIntegrationTest22.cs (7)
31new FileInfo(Path.Combine(outputPath, OutputFileName)).Should().Exist(); 32new FileInfo(Path.Combine(outputPath, $"{TestProjectName}.pdb")).Should().Exist(); 33new FileInfo(Path.Combine(outputPath, $"{TestProjectName}.Views.dll")).Should().Exist(); 34new FileInfo(Path.Combine(outputPath, $"{TestProjectName}.Views.pdb")).Should().Exist(); 37new FileInfo(Path.Combine(intermediateOutputPath, $"{TestProjectName}.TagHelpers.input.cache")).Should().Exist(); 38new FileInfo(Path.Combine(intermediateOutputPath, $"{TestProjectName}.TagHelpers.output.cache")).Should().Exist(); 39new FileInfo(Path.Combine(intermediateOutputPath, $"{TestProjectName}.TagHelpers.output.cache")).Should().Contain(
MvcBuildIntegrationTest50.cs (18)
41new FileInfo(Path.Combine(intermediateOutputPath, "MvcWithComponents.dll")).Should().NotExist(); 42new FileInfo(Path.Combine(intermediateOutputPath, "MvcWithComponents.Views.dll")).Should().NotExist(); 45new FileInfo(Path.Combine(intermediateOutputPath, "RazorComponents", "Views", "Shared", "NavMenu.razor.g.cs")).Should().NotExist(); 63new FileInfo(Path.Combine(outputPath, "AppWithP2PReference.dll")).Should().Exist(); 64new FileInfo(Path.Combine(outputPath, "AppWithP2PReference.Views.dll")).Should().Exist(); 65new FileInfo(Path.Combine(outputPath, "ClassLibrary.dll")).Should().Exist(); 66new FileInfo(Path.Combine(outputPath, "ClassLibrary.Views.dll")).Should().Exist(); 67new FileInfo(Path.Combine(outputPath, "ClassLibrary.Views.pdb")).Should().Exist(); 72new FileInfo(Path.Combine(outputPath, "AppWithP2PReference.dll")).Should().NotExist(); 73new FileInfo(Path.Combine(outputPath, "AppWithP2PReference.Views.dll")).Should().NotExist(); 74new FileInfo(Path.Combine(outputPath, "ClassLibrary.dll")).Should().NotExist(); 75new FileInfo(Path.Combine(outputPath, "ClassLibrary.Views.dll")).Should().NotExist(); 76new FileInfo(Path.Combine(outputPath, "ClassLibrary.Views.pdb")).Should().NotExist(); 82new FileInfo(Path.Combine(outputPath, "AppWithP2PReference.dll")).Should().Exist(); 83new FileInfo(Path.Combine(outputPath, "AppWithP2PReference.Views.dll")).Should().Exist(); 84new FileInfo(Path.Combine(outputPath, "ClassLibrary.dll")).Should().Exist(); 85new FileInfo(Path.Combine(outputPath, "ClassLibrary.Views.dll")).Should().Exist(); 86new FileInfo(Path.Combine(outputPath, "ClassLibrary.Views.pdb")).Should().Exist();
MvcBuildIntegrationTestLegacy.cs (13)
33new FileInfo(Path.Combine(outputPath, OutputFileName)).Should().Exist(); 34new FileInfo(Path.Combine(outputPath, $"{TestProjectName}.pdb")).Should().Exist(); 35new FileInfo(Path.Combine(outputPath, $"{TestProjectName}.Views.dll")).Should().Exist(); 36new FileInfo(Path.Combine(outputPath, $"{TestProjectName}.Views.pdb")).Should().Exist(); 39new FileInfo(Path.Combine(intermediateOutputPath, $"{TestProjectName}.TagHelpers.input.cache")).Should().Exist(); 40new FileInfo(Path.Combine(intermediateOutputPath, $"{TestProjectName}.TagHelpers.output.cache")).Should().Exist(); 42Path.Combine(intermediateOutputPath, $"{TestProjectName}.TagHelpers.output.cache")).Should().Contain( 77new FileInfo(Path.Combine(outputPath, OutputFileName)).Should().Exist(); 78new FileInfo(Path.Combine(outputPath, $"{TestProjectName}.pdb")).Should().Exist(); 79new FileInfo(Path.Combine(outputPath, $"{TestProjectName}.Views.dll")).Should().Exist(); 80new FileInfo(Path.Combine(outputPath, $"{TestProjectName}.Views.pdb")).Should().Exist(); 99new FileInfo(Path.Combine(outputPath, "refs", "System.Threading.Tasks.Extensions.dll")).Should().Exist(); 115depsFile.Should().Exist();
PackIntegrationTest.cs (2)
29new FileInfo(Path.Combine(outputPath, "ClassLibrary.dll")).Should().Exist(); 30new FileInfo(Path.Combine(outputPath, "ClassLibrary.Views.dll")).Should().NotExist();
PublishIntegrationTest.cs (37)
24new FileInfo(Path.Combine(publishOutputPath, "SimpleMvc.dll")).Should().Exist(); 25new FileInfo(Path.Combine(publishOutputPath, "SimpleMvc.pdb")).Should().Exist(); 26new FileInfo(Path.Combine(publishOutputPath, "appsettings.json")).Should().Exist(); 27new FileInfo(Path.Combine(publishOutputPath, "appsettings.Development.json")).Should().Exist(); 29new FileInfo(Path.Combine(outputPath, "SimpleMvc.dll")).Should().Exist(); 30new FileInfo(Path.Combine(outputPath, "SimpleMvc.pdb")).Should().Exist(); 31new FileInfo(Path.Combine(outputPath, "appsettings.json")).Should().Exist(); 32new FileInfo(Path.Combine(outputPath, "appsettings.Development.json")).Should().Exist(); 35new FileInfo(Path.Combine(publishOutputPath, "wwwroot", "js", "SimpleMvc.js")).Should().Exist(); 36new FileInfo(Path.Combine(publishOutputPath, "wwwroot", "css", "site.css")).Should().Exist(); 37new FileInfo(Path.Combine(publishOutputPath, "wwwroot", ".well-known", "security.txt")).Should().Exist(); 42new FileInfo(Path.Combine(publishOutputPath, "wwwroot", ".not-copied", "test.txt")).Should().NotExist(); 57new FileInfo(Path.Combine(publishOutputPath, "SimpleMvc.dll")).Should().Exist(); 58new FileInfo(Path.Combine(publishOutputPath, "SimpleMvc.pdb")).Should().Exist(); 79new FileInfo(Path.Combine(publishOutputPath, "SimpleMvc.dll")).Should().Exist(); 80new FileInfo(Path.Combine(publishOutputPath, "SimpleMvc.pdb")).Should().Exist(); 95new FileInfo(Path.Combine(publishOutputPath, "SimpleMvc.dll")).Should().Exist(); 96new FileInfo(Path.Combine(publishOutputPath, "SimpleMvc.pdb")).Should().Exist(); 99new FileInfo(Path.Combine(publishOutputPath, "refs", "mscorlib.dll")).Should().Exist(); 122new FileInfo(Path.Combine(publishOutputPath, "SimpleMvc.dll")).Should().Exist(); 123new FileInfo(Path.Combine(publishOutputPath, "SimpleMvc.pdb")).Should().Exist(); 126new FileInfo(Path.Combine(publishOutputPath, "refs", "mscorlib.dll")).Should().Exist(); 140new FileInfo(Path.Combine(publishOutputPath, "AppWithP2PReference.dll")).Should().Exist(); 141new FileInfo(Path.Combine(publishOutputPath, "AppWithP2PReference.pdb")).Should().Exist(); 142new FileInfo(Path.Combine(publishOutputPath, "ClassLibrary.dll")).Should().Exist(); 143new FileInfo(Path.Combine(publishOutputPath, "ClassLibrary.pdb")).Should().Exist(); 177new FileInfo(Path.Combine(outputPath, "AppWithP2PReference.dll")).Should().Exist(); 178new FileInfo(Path.Combine(outputPath, "ClassLibrary.dll")).Should().Exist(); 179new FileInfo(Path.Combine(outputPath, "AnotherClassLib.dll")).Should().Exist(); 188new FileInfo(Path.Combine(publishOutputPath, "AppWithP2PReference.dll")).Should().Exist(); 189new FileInfo(Path.Combine(publishOutputPath, "AppWithP2PReference.pdb")).Should().Exist(); 191new FileInfo(Path.Combine(publishOutputPath, "ClassLibrary.dll")).Should().Exist(); 192new FileInfo(Path.Combine(publishOutputPath, "ClassLibrary.pdb")).Should().Exist(); 194new FileInfo(Path.Combine(publishOutputPath, "AnotherClassLib.dll")).Should().Exist(); 195new FileInfo(Path.Combine(publishOutputPath, "AnotherClassLib.pdb")).Should().Exist(); 211new FileInfo(assemblyPath).Should().Exist(); 221new FileInfo(publishAssemblyPath).Should().Exist();
Microsoft.NET.Sdk.StaticWebAssets.Tests (220)
JsModulesIntegrationTest.cs (18)
26new FileInfo(Path.Combine(intermediateOutputPath, "jsmodules", "jsmodules.build.manifest.json")).Should().NotExist(); 49file.Should().Exist(); 50file.Should().Match("""ComponentApp\.[a-zA-Z-0-9]{10}\.lib\.module\.js"""); 108new FileInfo(path).Should().Exist(); 129new FileInfo(Path.Combine(publishOutputPath, "wwwroot", "ComponentApp.lib.module.js")).Should().NotExist(); 130new FileInfo(Path.Combine(publishOutputPath, "wwwroot", "ComponentApp.modules.json")).Should().NotExist(); 145file.Should().NotExist(); 229file.Should().Exist(); 230file.Should().Contain("_content/AnotherClassLib/AnotherClassLib.lib.module.js"); 231file.Should().Contain("_content/ClassLibrary/ClassLibrary.lib.module.js"); 274file.Should().Exist(); 275file.Should().Contain("_content/AnotherClassLib/AnotherClassLib.lib.module.js"); 276file.Should().NotContain("_content/ClassLibrary/AnotherClassLib.lib.module.js"); 332modulesManifest.Should().Exist(); 333modulesManifest.Should().Contain("_content/AnotherClassLib/AnotherClassLib.lib.module.js"); 334modulesManifest.Should().NotContain("_content/ClassLibrary/AnotherClassLib.lib.module.js"); 337moduleFile.Should().Exist(); 338moduleFile.Should().Contain("console.log('Hello world AnotherClassLib publish')");
LegacyStaticWebAssetsV1IntegrationTest.cs (5)
53new FileInfo(path).Should().Exist(); 60new FileInfo(finalPath).Should().NotExist(); 64new FileInfo(path).Should().Exist(); 116new FileInfo(path).Should().Exist(); 124new FileInfo(finalPath).Should().Exist();
ScopedCssIntegrationTests.cs (69)
25new FileInfo(Path.Combine(intermediateOutputPath, "scopedcss", "Components", "Pages", "Counter.razor.rz.scp.css")).Should().NotExist(); 26new FileInfo(Path.Combine(intermediateOutputPath, "scopedcss", "Components", "Pages", "Index.razor.rz.scp.css")).Should().NotExist(); 27new FileInfo(Path.Combine(intermediateOutputPath, "scopedcss", "bundle", "ComponentApp.styles.css")).Should().NotExist(); 28new FileInfo(Path.Combine(intermediateOutputPath, "scopedcss", "Components", "Pages", "FetchData.razor.rz.scp.css")).Should().NotExist(); 42new FileInfo(Path.Combine(intermediateOutputPath, "scopedcss", "Views", "Home", "Index.cshtml.rz.scp.css")).Should().NotExist(); 43new FileInfo(Path.Combine(intermediateOutputPath, "scopedcss", "Views", "Home", "Contact.cshtml.rz.scp.css")).Should().NotExist(); 44new FileInfo(Path.Combine(intermediateOutputPath, "scopedcss", "bundle", "SimpleMvc.styles.css")).Should().NotExist(); 45new FileInfo(Path.Combine(intermediateOutputPath, "scopedcss", "Views", "Home", "About.cshtml.rz.scp.css")).Should().NotExist(); 59new FileInfo(Path.Combine(intermediateOutputPath, "scopedcss", "Components", "Pages", "Counter.razor.rz.scp.css")).Should().NotExist(); 60new FileInfo(Path.Combine(intermediateOutputPath, "scopedcss", "Components", "Pages", "Index.razor.rz.scp.css")).Should().NotExist(); 61new FileInfo(Path.Combine(intermediateOutputPath, "scopedcss", "bundle", "ComponentApp.styles.css")).Should().NotExist(); 62new FileInfo(Path.Combine(intermediateOutputPath, "scopedcss", "Components", "Pages", "FetchData.razor.rz.scp.css")).Should().NotExist(); 92new FileInfo(scoped).Should().Exist(); 93new FileInfo(scoped).Should().Contain("b-overridden"); 95new FileInfo(generated).Should().Exist(); 96new FileInfo(generated).Should().Contain("b-overridden"); 97new FileInfo(Path.Combine(intermediateOutputPath, "scopedcss", "Components", "Pages", "Index.razor.rz.scp.css")).Should().NotExist(); 111new FileInfo(Path.Combine(intermediateOutputPath, "scopedcss", "Components", "Pages", "Counter.razor.rz.scp.css")).Should().Exist(); 112new FileInfo(Path.Combine(intermediateOutputPath, "scopedcss", "Components", "Pages", "Index.razor.rz.scp.css")).Should().Exist(); 113new FileInfo(Path.Combine(intermediateOutputPath, "scopedcss", "bundle", "ComponentApp.styles.css")).Should().Exist(); 114new FileInfo(Path.Combine(intermediateOutputPath, "scopedcss", "projectbundle", "ComponentApp.bundle.scp.css")).Should().Exist(); 115new FileInfo(Path.Combine(intermediateOutputPath, "scopedcss", "Components", "Pages", "FetchData.razor.rz.scp.css")).Should().NotExist(); 129new FileInfo(Path.Combine(intermediateOutputPath, "scopedcss", "Views", "Home", "Index.cshtml.rz.scp.css")).Should().Exist(); 130new FileInfo(Path.Combine(intermediateOutputPath, "scopedcss", "Views", "Home", "Contact.cshtml.rz.scp.css")).Should().Exist(); 131new FileInfo(Path.Combine(intermediateOutputPath, "scopedcss", "bundle", "SimpleMvc.styles.css")).Should().Exist(); 132new FileInfo(Path.Combine(intermediateOutputPath, "scopedcss", "projectbundle", "SimpleMvc.bundle.scp.css")).Should().Exist(); 133new FileInfo(Path.Combine(intermediateOutputPath, "scopedcss", "Views", "Home", "About.cshtml.rz.scp.css")).Should().Exist(); 148new FileInfo(generatedCounter).Should().Exist(); 150new FileInfo(generatedIndex).Should().Exist(); 177new FileInfo(generatedIndex).Should().Exist(); 179new FileInfo(generatedAbout).Should().Exist(); 181new FileInfo(generatedContact).Should().Exist(); 215new FileInfo(generatedIndex).Should().Exist(); 218new FileInfo(generatedCounter).Should().Exist(); 245new FileInfo(Path.Combine(publishOutputPath, "wwwroot", "ComponentApp.styles.css")).Should().Exist(); 246new FileInfo(Path.Combine(publishOutputPath, "wwwroot", "_content", "ComponentApp", "Components", "Pages", "Index.razor.rz.scp.css")).Should().NotExist(); 247new FileInfo(Path.Combine(publishOutputPath, "wwwroot", "_content", "ComponentApp", "Components", "Pages", "Counter.razor.rz.scp.css")).Should().NotExist(); 265new FileInfo(Path.Combine(publishOutputPath, "wwwroot", "ComponentApp.styles.css")).Should().Exist(); 266new FileInfo(Path.Combine(publishOutputPath, "wwwroot", "_content", "ComponentApp", "Components", "Pages", "Index.razor.rz.scp.css")).Should().NotExist(); 267new FileInfo(Path.Combine(publishOutputPath, "wwwroot", "_content", "ComponentApp", "Components", "Pages", "Counter.razor.rz.scp.css")).Should().NotExist(); 284new FileInfo(Path.Combine(publishOutputPath, "wwwroot", "_content", "ComponentApp", "_framework", "scoped.styles.css")).Should().NotExist(); 298new FileInfo(Path.Combine(publishOutputPath, "wwwroot", "_content", "ComponentApp", "ComponentApp.styles.css")).Should().NotExist(); 300new FileInfo(Path.Combine(publishOutputPath, "wwwroot", "Components", "Pages", "Index.razor.rz.scp.css")).Should().Exist(); 301new FileInfo(Path.Combine(publishOutputPath, "wwwroot", "Components", "Pages", "Counter.razor.rz.scp.css")).Should().Exist(); 315new FileInfo(Path.Combine(intermediateOutputPath, "scopedcss", "Components", "Pages", "Counter.razor.rz.scp.css")).Should().Exist(); 317new FileInfo(generatedBundle).Should().Exist(); 319new FileInfo(generatedProjectBundle).Should().Exist(); 321new FileInfo(generatedCounter).Should().Exist(); 331new FileInfo(Path.Combine(intermediateOutputPath, "scopedcss", "Components", "Pages", "Counter.razor.rz.scp.css")).Should().NotExist(); 332new FileInfo(generatedCounter).Should().Exist(); 355new FileInfo(Path.Combine(intermediateOutputPath, "scopedcss", "Components", "Pages", "Counter.razor.rz.scp.css")).Should().NotExist(); 356new FileInfo(Path.Combine(intermediateOutputPath, "scopedcss", "Components", "Pages", "Index.razor.rz.scp.css")).Should().NotExist(); 357new FileInfo(Path.Combine(intermediateOutputPath, "scopedcss", "_framework", "scoped.styles.css")).Should().NotExist(); 411new FileInfo(bundlePath).Should().Exist(); 438fileInfo.Should().Exist(); 477new FileInfo(finalPath).Should().Exist(); 489appBundle.Should().Exist(); 491appBundle.Should().Contain("_content/ClassLibrary/ClassLibrary.bundle.scp.css"); 492appBundle.Should().Match(""".*_content/RazorPackageLibraryDirectDependency/RazorPackageLibraryDirectDependency\.[a-zA-Z0-9]+\.bundle\.scp\.css.*"""); 524new FileInfo(finalPath).Should().Exist(); 536appBundle.Should().Exist(); 538appBundle.Should().Contain("_content/ClassLibrary/ClassLibrary.bundle.scp.css"); 539appBundle.Should().Match("""_content/RazorPackageLibraryDirectDependency/RazorPackageLibraryDirectDependency\.[a-zA-Z0-9]+\.bundle\.scp\.css"""); 565new FileInfo(finalPath).Should().Exist(); 577appBundle.Should().Exist(); 579appBundle.Should().Match(""".*_content/RazorPackageLibraryDirectDependency/RazorPackageLibraryDirectDependency\.[a-zA-Z0-9]+\.bundle\.scp\.css.*"""); 580appBundle.Should().Match(""".*_content/ClassLibrary/ClassLibrary\.[a-zA-Z0-9]+\.bundle\.scp\.css.*"""); 605new FileInfo(bundlePath).Should().Exist(); 614fileInfo.Should().Exist();
StaticWebAssetEndpointsIntegrationTest.cs (4)
40new FileInfo(path).Should().Exist(); 190new FileInfo(path).Should().Exist(); 200file.Should().Exist(); 321new FileInfo(path).Should().Exist();
StaticWebAssets\GenerateStaticWebAssetEndpointsManifestTest.cs (3)
203new FileInfo(path).Should().Exist(); 254new FileInfo(path).Should().Exist(); 255new FileInfo(exclusionCachePath).Should().Exist();
StaticWebAssets\GenerateStaticWebAssetEndpointsPropsFileTest.cs (1)
91new FileInfo(file).Should().Exist();
StaticWebAssetsCompressionIntegrationTest.cs (5)
46new FileInfo(path).Should().Exist(); 52new FileInfo(finalPath).Should().Exist(); 120new FileInfo(path).Should().Exist(); 126new FileInfo(finalPath).Should().Exist(); 161new FileInfo(path).Should().Exist();
StaticWebAssetsCrossTargetingTests.cs (3)
52new FileInfo(path).Should().Exist(); 59new FileInfo(finalPath).Should().Exist(); 99new FileInfo(path).Should().Exist();
StaticWebAssetsDesignTimeTest.cs (6)
44new FileInfo(inputFilePath).Should().Exist(); 52new FileInfo(outputFilePath).Should().Exist(); 80new FileInfo(inputFilePath).Should().Exist(); 87new FileInfo(outputFilePath).Should().Exist(); 114new FileInfo(inputFilePath).Should().Exist(); 120new FileInfo(outputFilePath).Should().Exist();
StaticWebAssetsFingerprintingTest.cs (2)
37new FileInfo(path).Should().Exist(); 43new FileInfo(finalPath).Should().Exist();
StaticWebAssetsIntegrationTest.cs (66)
31new FileInfo(path).Should().Exist(); 37new FileInfo(finalPath).Should().Exist(); 59new FileInfo(path).Should().Exist(); 65new FileInfo(finalPath).Should().Exist(); 69new FileInfo(Path.Combine(intermediateOutputPath, "rpswa.dswa.cache.json")).Should().NotExist(); 71new FileInfo(Path.Combine(intermediateOutputPath, "rbcswa.dswa.cache.json")).Should().NotExist(); 73new FileInfo(Path.Combine(intermediateOutputPath, "rjimswa.dswa.cache.json")).Should().NotExist(); 75new FileInfo(Path.Combine(intermediateOutputPath, "rjsmcshtml.dswa.cache.json")).Should().NotExist(); 76new FileInfo(Path.Combine(intermediateOutputPath, "rjsmrazor.dswa.cache.json")).Should().NotExist(); 98originalObjFile.Should().Exist(); 107originalFile.Should().Exist(); 115secondObjFile.Should().Exist(); 122secondFinalFile.Should().Exist(); 144originalObjFile.Should().Exist(); 152originalFile.Should().Exist(); 169secondObjFile.Should().Exist(); 182secondFinalFile.Should().Exist(); 212originalObjFile.Should().Exist(); 219originalFile.Should().Exist(); 228secondObjFile.Should().Exist(); 243secondFinalFile.Should().Exist(); 272new FileInfo(path).Should().Exist(); 278new FileInfo(finalPath).Should().NotExist(); 282new FileInfo(path).Should().Exist(); 307new FileInfo(path).Should().Exist(); 313new FileInfo(finalPath).Should().NotExist(); 317new FileInfo(path).Should().Exist(); 346objManifestFile.Should().Exist(); 355binManifestFile.Should().Exist(); 376secondBinManifestFile.Should().Exist(); 385new FileInfo(path).Should().Exist(); 412new FileInfo(path).Should().Exist(); 418new FileInfo(finalPath).Should().Exist(); 422new FileInfo(path).Should().Exist(); 448new FileInfo(path).Should().Exist(); 454new FileInfo(finalPath).Should().Exist(); 462new FileInfo(path).Should().NotExist(); 465new FileInfo(finalPath).Should().NotExist(); 503new FileInfo(path).Should().Exist(); 509new FileInfo(finalPath).Should().NotExist(); 513new FileInfo(path).Should().Exist(); 567new FileInfo(path).Should().Exist(); 608new FileInfo(path).Should().Exist(); 614new FileInfo(finalPath).Should().Exist(); 662new FileInfo(path).Should().Exist(); 670new FileInfo(finalPath).Should().Exist(); 674new FileInfo(path).Should().Exist(); 703new FileInfo(path).Should().Exist(); 711new FileInfo(finalPath).Should().Exist(); 738new FileInfo(path).Should().Exist(); 745new FileInfo(finalPath).Should().Exist(); 757new FileInfo(path).Should().Exist(); 765new FileInfo(finalPath).Should().Exist(); 801new FileInfo(path).Should().Exist(); 808new FileInfo(finalPath).Should().NotExist(); 812new FileInfo(path).Should().Exist(); 843new FileInfo(path).Should().Exist(); 851new FileInfo(finalPath).Should().NotExist(); 855new FileInfo(path).Should().Exist(); 885objManifestFile.Should().Exist(); 895binManifestFile.Should().Exist(); 917secondBinManifestFile.Should().Exist(); 923new FileInfo(path).Should().Exist(); 953new FileInfo(path).Should().Exist(); 960new FileInfo(finalPath).Should().NotExist(); 964new FileInfo(path).Should().Exist();
StaticWebAssetsPackIntegrationTest.cs (38)
51new FileInfo(Path.Combine(outputPath, "PackageLibraryDirectDependency.dll")).Should().Exist(); 80new FileInfo(Path.Combine(outputPath, "PackageLibraryNoStaticAssets.dll")).Should().Exist(); 114new FileInfo(Path.Combine(outputPath, "PackageLibraryNoStaticAssets.dll")).Should().Exist(); 146new FileInfo(Path.Combine(outputPath, "PackageLibraryDirectDependency.dll")).Should().Exist(); 177new FileInfo(Path.Combine(outputPath, "PackageLibraryDirectDependency.dll")).Should().Exist(); 219new FileInfo(Path.Combine(outputPath, "PackageLibraryDirectDependency.dll")).Should().Exist(); 262new FileInfo(Path.Combine(outputPath, "PackageLibraryDirectDependency.dll")).Should().Exist(); 305new FileInfo(Path.Combine(outputPath, "PackageLibraryDirectDependency.dll")).Should().Exist(); 343new FileInfo(Path.Combine(outputPath, "PackageLibraryDirectDependency.dll")).Should().Exist(); 383new FileInfo(Path.Combine(outputPath, "PackageLibraryDirectDependency.dll")).Should().Exist(); 443new FileInfo(Path.Combine(outputPath, "PackageLibraryTransitiveDependency.dll")).Should().Exist(); 512new FileInfo(Path.Combine(outputPath, "PackageLibraryTransitiveDependency.dll")).Should().Exist(); 585new FileInfo(Path.Combine(outputPath, "PackageLibraryTransitiveDependency.dll")).Should().Exist(); 659new FileInfo(Path.Combine(outputPath, "PackageLibraryTransitiveDependency.dll")).Should().Exist(); 727new FileInfo(Path.Combine(outputPath, "PackageLibraryTransitiveDependency.dll")).Should().Exist(); 796new FileInfo(Path.Combine(outputPath, "PackageLibraryTransitiveDependency.dll")).Should().Exist(); 862new FileInfo(Path.Combine(outputPath, "PackageLibraryTransitiveDependency.dll")).Should().Exist(); 929new FileInfo(Path.Combine(outputPath, "PackageLibraryTransitiveDependency.dll")).Should().Exist(); 1000new FileInfo(Path.Combine(outputPath, "PackageLibraryTransitiveDependency.dll")).Should().Exist(); 1072new FileInfo(Path.Combine(outputPath, "PackageLibraryTransitiveDependency.dll")).Should().Exist(); 1138new FileInfo(Path.Combine(outputPath, "PackageLibraryTransitiveDependency.dll")).Should().Exist(); 1205new FileInfo(Path.Combine(outputPath, "PackageLibraryTransitiveDependency.dll")).Should().Exist(); 1277new FileInfo(Path.Combine(outputPath, "PackageLibraryTransitiveDependency.dll")).Should().Exist(); 1354new FileInfo(Path.Combine(outputPath, "PackageLibraryTransitiveDependency.dll")).Should().Exist(); 1427new FileInfo(Path.Combine(outputPath, "PackageLibraryTransitiveDependency.dll")).Should().Exist(); 1469new FileInfo(Path.Combine(outputPath, "PackageLibraryDirectDependency.dll")).Should().Exist(); 1495new FileInfo(Path.Combine(outputPath, "PackageLibraryDirectDependency.dll")).Should().Exist(); 1520new FileInfo(Path.Combine(outputPath, "PackageLibraryDirectDependency.dll")).Should().Exist(); 1553new FileInfo(Path.Combine(outputPath, "PackageLibraryDirectDependency.dll")).Should().Exist(); 1583new FileInfo(Path.Combine(outputPath, "PackageLibraryDirectDependency.dll")).Should().Exist(); 1609new FileInfo(Path.Combine(outputPath, "ComponentLibrary.dll")).Should().Exist(); 1636new FileInfo(Path.Combine(outputPath, "PackageLibraryTransitiveDependency.dll")).Should().Exist(); 1638new FileInfo(Path.Combine(intermediateOutputPath, "staticwebassets", "msbuild.PackageLibraryTransitiveDependency.Microsoft.AspNetCore.StaticWebAssets.props")).Should().Exist(); 1639new FileInfo(Path.Combine(intermediateOutputPath, "staticwebassets", "msbuild.build.PackageLibraryTransitiveDependency.props")).Should().Exist(); 1640new FileInfo(Path.Combine(intermediateOutputPath, "staticwebassets", "msbuild.buildMultiTargeting.PackageLibraryTransitiveDependency.props")).Should().Exist(); 1641new FileInfo(Path.Combine(intermediateOutputPath, "staticwebassets", "msbuild.buildTransitive.PackageLibraryTransitiveDependency.props")).Should().Exist(); 1684new FileInfo(Path.Combine(outputPath, "PackageLibraryDirectDependency.dll")).Should().Exist(); 1715new FileInfo(Path.Combine(outputPath, "PackageLibraryDirectDependency.dll")).Should().Exist();
Microsoft.NET.TestFramework (5)
Assertions\CommandResultAssertions.cs (3)
265new FileInfo(nupkgPath).Should().Exist(); 285new FileInfo(nuspecPath).Should().Exist(); 305new FileInfo(nuspecPath).Should().Exist();
Assertions\DirectoryInfoAssertions.cs (2)
32file.Should().Exist($"Expected File {expectedFile} cannot be found in directory {_dirInfo.FullName}."); 39file.Should().NotExist($"File {expectedFile} should not be found in directory {_dirInfo.FullName}.");