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