425 references to Should
dotnet.Tests (39)
CommandFactoryTests\GivenAProjectToolsCommandResolver.cs (1)
258.Should().HaveFilesMatching("*.deps.json", SearchOption.TopDirectoryOnly);
CommandTests\Clean\GivenDotnetCleanCleansBuildArtifacts.cs (2)
26outputFolder.Should().NotBeEmpty(); 32outputFolder.Should().BeEmpty();
CommandTests\MSBuild\GivenMsbuildForwardingApp.cs (2)
51.Should() 63.Should()
CommandTests\Pack\PackTests.cs (6)
31outputDir.Should().Exist() 51outputDir.Should().Exist() 214outputDir.Should().Exist() 260.Should().HaveFilesMatching("*.nupkg", SearchOption.AllDirectories); 309outputDir.Should().Exist() 411outputDir.Should().Exist()
CommandTests\Publish\GivenDotnetPublishPublishesProjects.cs (3)
141outputDirectory.Should().HaveFiles(new[] { 221outputDirectory.Should().OnlyHaveFiles(new[] { 249outputDirectory.Should().OnlyHaveFiles(new[] {
CommandTests\Run\RunFileTests.cs (11)
1859.Should().Exist() 1891.Should().Exist() 1925.Should().Exist() 1949.Should().Exist() 1974.Should().Exist() 1994.Should().Exist() 2017.Should().Exist() 2042.Should().Exist() 2079new DirectoryInfo(artifactsDir).Sub("package").Should().NotExist(); 2122new DirectoryInfo(artifactsDir).Sub("package").Should().NotExist(); 2146artifactsDir.Should().HaveFiles(["build-start.cache", "build-success.cache"]);
CommandTests\Solution\Add\GivenDotnetSlnAdd.cs (4)
680new DirectoryInfo(appPathCalculator.GetOutputDirectory(configuration: "Debug")).Should().NotExist(reasonString); 681new DirectoryInfo(appPathCalculator.GetOutputDirectory(configuration: "Release")).Should().Exist() 685new DirectoryInfo(libPathCalculator.GetOutputDirectory(configuration: "Debug")).Should().NotExist(reasonString); 686new DirectoryInfo(libPathCalculator.GetOutputDirectory(configuration: "Release")).Should().Exist()
CommandTests\Solution\Remove\GivenDotnetSlnRemove.cs (3)
519new DirectoryInfo(outputCalculator.GetOutputDirectory(configuration: "Debug")).Should().NotExist(reasonString); 522outputDirectory.Should().Exist(); 523outputDirectory.Should().HaveFile("App.dll");
CommandTests\Workload\Clean\GivenDotnetWorkloadClean.cs (2)
172new DirectoryInfo(Path.GetDirectoryName(Path.GetDirectoryName(extraPackRecordPath))).Should().NotExist(); 173new DirectoryInfo(extraPackPath).Should().NotExist();
CommandTests\Workload\Install\WorkloadGarbageCollectionTests.cs (2)
284new DirectoryInfo(pack.Path).Should().Exist(); 288new DirectoryInfo(pack.Path).Should().NotExist();
GivenThatTheUserIsRunningDotNetForTheFirstTime.cs (3)
149.Should() 157.Should() 175homeFolder.Should().NotExist();
EndToEnd.Tests (10)
GivenDotNetUsesMSBuild.cs (2)
35binDirectory.Should().HaveFilesMatching("*.dll", SearchOption.AllDirectories); 41binDirectory.Should().NotHaveFilesMatching("*.dll", SearchOption.AllDirectories);
GivenUsingDefaultRuntimeFrameworkVersions.cs (1)
58binDirectory.Should().HaveFilesMatching(outputFile, SearchOption.TopDirectoryOnly);
ProjectBuildTests.cs (7)
45binDirectory.Should().HaveFilesMatching("*.dll", SearchOption.AllDirectories); 51binDirectory.Should().NotHaveFilesMatching("*.dll", SearchOption.AllDirectories); 118selfContainedPublishDir.Should().HaveFilesMatching("System.Windows.Forms.dll", SearchOption.TopDirectoryOnly); 120selfContainedPublishDir.Should().HaveFilesMatching($"{new DirectoryInfo(directory.Path).Name}.dll", SearchOption.TopDirectoryOnly); 156selfContainedPublishDir.Should().HaveFilesMatching("PresentationCore.dll", SearchOption.TopDirectoryOnly); 157selfContainedPublishDir.Should().HaveFilesMatching("PresentationNative_*.dll", SearchOption.TopDirectoryOnly); 159selfContainedPublishDir.Should().HaveFilesMatching($"{new DirectoryInfo(directory.Path).Name}.dll", SearchOption.TopDirectoryOnly);
Microsoft.NET.Build.Tests (156)
AppHostTests.cs (5)
70outputDirectory.Should().OnlyHaveFiles(GetExpectedFilesFromBuild(testAsset, targetFramework)); 188outputDirectory.Should().OnlyHaveFiles(new[] { 294outputDirectory.Should().HaveFiles(new[] { $"{testProject.Name}{Constants.ExeSuffix}" }); 341outputDirectory.Should().HaveFiles(new[] { testProject.Name + ".exe" }); 370outputDirectory.Should().OnlyHaveFiles(new[] {
ArtifactsOutputPathTests.cs (29)
154.Should() 158.Should() 181.Should() 207.Should() 225.Should() 271new DirectoryInfo(Path.Combine(testAsset.Path, "artifacts", "bin", testProject.Name, "NET8_Debug")).Should().Exist(); 272new DirectoryInfo(Path.Combine(testAsset.Path, "artifacts", "bin", testProject.Name, "NET7_Debug")).Should().Exist(); 273new DirectoryInfo(Path.Combine(testAsset.Path, "artifacts", "bin", testProject.Name, "debug_netstandard2.0")).Should().Exist(); 275new DirectoryInfo(Path.Combine(testAsset.Path, "artifacts", "bin", testProject.Name, "debug_net8.0")).Should().NotExist(); 276new DirectoryInfo(Path.Combine(testAsset.Path, "artifacts", "bin", testProject.Name, "debug_net7.0")).Should().NotExist(); 278new DirectoryInfo(Path.Combine(testAsset.Path, "artifacts", "obj", testProject.Name, "NET8_Debug")).Should().Exist(); 279new DirectoryInfo(Path.Combine(testAsset.Path, "artifacts", "obj", testProject.Name, "NET7_Debug")).Should().Exist(); 280new DirectoryInfo(Path.Combine(testAsset.Path, "artifacts", "obj", testProject.Name, "debug_netstandard2.0")).Should().Exist(); 282new DirectoryInfo(Path.Combine(testAsset.Path, "artifacts", "obj", testProject.Name, "debug_net8.0")).Should().NotExist(); 283new DirectoryInfo(Path.Combine(testAsset.Path, "artifacts", "obj", testProject.Name, "debug_net7.0")).Should().NotExist(); 295new DirectoryInfo(Path.Combine(testAsset.Path, "artifacts", "publish", testProject.Name, "NET8_Release")).Should().Exist(); 296new DirectoryInfo(Path.Combine(testAsset.Path, "artifacts", "publish", testProject.Name, "NET7_Debug")).Should().Exist(); 297new DirectoryInfo(Path.Combine(testAsset.Path, "artifacts", "publish", testProject.Name, "debug_netstandard2.0")).Should().Exist(); 305new DirectoryInfo(Path.Combine(testAsset.Path, "artifacts", "package", "release")).Should().Exist(); 460.Should() 480.Should() 512.Should() 519.Should() 525.Should() 575outputDir.Should().Exist().And.HaveFile(hostfxrName); 579publishDir.Should().Exist().And.HaveFile(hostfxrName); 590outputDir.Should().Exist(); 591outputDir.Should().NotHaveFiles([hostfxrName]); 599root.Should().HaveFiles([appBinaryName]);
GivenFrameworkReferences.cs (1)
1028outputDirectory.Should().HaveFiles(expectedReferenceNames.Concat(notExpectedReferenceNames)
GivenThatWeWantAllResourcesInSatellite.cs (1)
89outputDirectory.Should().OnlyHaveFiles(outputFiles);
GivenThatWeWantToBuildAComServerLibrary.cs (4)
31outputDirectory.Should().OnlyHaveFiles(new[] { 67outputDirectory.Should().OnlyHaveFiles(new[] { 100outputDirectory.Should().OnlyHaveFiles(new[] { 301outputDirectory.Should().OnlyHaveFiles(new[] {
GivenThatWeWantToBuildACppCliProject.cs (1)
83new DirectoryInfo(packagesFolder).Should().NotHaveSubDirectories("microsoft.windows.sdk.net.ref");
GivenThatWeWantToBuildACppCliProjectWithTransitiveDeps.cs (2)
31outputDirectory.Should().HaveFiles(new[] 43outputDirectory.Should().HaveFiles(new[]
GivenThatWeWantToBuildACrossTargetedLibrary.cs (2)
28outputDirectory.Should().OnlyHaveFiles(new[] { 56outputDirectory.Should().OnlyHaveFiles(new[] {
GivenThatWeWantToBuildADesktopExe.cs (10)
34outputDirectory.Should().OnlyHaveFiles(new[] { 589outputDirectory.Should().HaveFile("System.Security.Cryptography.Algorithms.dll"); 759outputDirectory.Should().HaveFiles(new[] { 927outputDirectory.Should().NotHaveFile("FluentValidation.resources.dll"); 928outputDirectory.Should().HaveFile(@"fr\FluentValidation.resources.dll"); 985outputDirectory.Should().HaveFile("System.Diagnostics.Debug.xml"); 1141outputDirectory.Should().HaveFile("Microsoft.Build.xml"); 1142publishDirectory.Should().NotHaveFile("Microsoft.Build.xml"); 1174void ShouldHave(string file) => directoryInfo.Should().HaveFile(file); 1176void ShouldNotHave(string file) => directoryInfo.Should().NotHaveFile(file);
GivenThatWeWantToBuildADesktopExeWithFSharp.cs (1)
36outputDirectory.Should().OnlyHaveFiles(new[] {
GivenThatWeWantToBuildADesktopExeWtihNetStandardLib.cs (7)
119outputDirectory.Should().HaveFiles(new[] { 155outputDirectory.Should().OnlyHaveFiles(new[] { valuesFilename }); 158testLibraryDirectory.Should().NotHaveSubDirectories("bin"); 252outputDirectory.Should().HaveFiles(new[] { 298outputDirectory.Should().OnlyHaveFiles(new[] { 359outputDirectory.Should().NotHaveFile("netstandard.dll"); 400outputDirectory.Should().HaveFiles(new[] {
GivenThatWeWantToBuildALibrary.cs (12)
38outputDirectory.Should().OnlyHaveFiles(new[] { 160outputDirectory.Should().OnlyHaveFiles(new[] { 167new DirectoryInfo(libraryProjectDirectory).Should().OnlyHaveFiles(new[] 194outputDirectory.Should().OnlyHaveFiles(new[] { 215new DirectoryInfo(libraryProjectDirectory).Should().OnlyHaveFiles(expectedProjectDirectoryFiles, SearchOption.TopDirectoryOnly); 238outputDirectory.Should().OnlyHaveFiles(new[] { 245new DirectoryInfo(libraryProjectDirectory).Should().OnlyHaveFiles(new[] 890outputDirectory.Should().HaveFile(runtimeConfigName); 934outputDirectory.Should().HaveFile(runtimeConfigName); 989outputDirectory.Should().HaveFiles(new[] { 996outputDirectory.Should().HaveFile("Newtonsoft.Json.dll"); 1000outputDirectory.Should().NotHaveFile("Newtonsoft.Json.dll");
GivenThatWeWantToBuildALibraryWithFSharp.cs (1)
32outputDirectory.Should().OnlyHaveFiles(new[] {
GivenThatWeWantToBuildALibraryWithVB.cs (1)
32outputDirectory.Should().OnlyHaveFiles(new[] {
GivenThatWeWantToBuildAnAppWithLibrariesAndRid.cs (2)
98outputDirectory.Should().NotHaveSubDirectories(); 115outputDirectory.Should().OnlyHaveFiles(expectedFiles.Where(x => !string.IsNullOrEmpty(x)).ToList());
GivenThatWeWantToBuildAnAppWithLibrary.cs (6)
49outputDirectory.Should().OnlyHaveFiles(new[] { 119cultureDir.Should().Exist(); 120cultureDir.Should().HaveFile("TestApp.resources.dll"); 121cultureDir.Should().HaveFile("TestLibrary.resources.dll"); 144outputDirectory.Should().OnlyHaveFiles(new[] { 161outputDirectory.Should().OnlyHaveFiles(Array.Empty<string>());
GivenThatWeWantToBuildAnAppWithoutTransitiveProjectRefs.cs (2)
94outputDirectories[targetFramework].Should() 161outputDirectory.Should().OnlyHaveFiles(new[] {
GivenThatWeWantToBuildAnAppWithSharedProject.cs (2)
62outputPath.Should().NotHaveFile("TextFile1.txt"); 64outputPath.Sub("MyFolder").Should().HaveFile("TextFile1.txt");
GivenThatWeWantToBuildAnAppWithTransitiveNonSdkProjectRefs.cs (1)
169outputDirectory.Should().OnlyHaveFiles(new[] {
GivenThatWeWantToBuildAnAppWithTransitiveProjectRefs.cs (3)
36outputDirectory.Should().OnlyHaveFiles(new[] { 74outputDirectory.Should().OnlyHaveFiles(new[] { 93outputDirectory.Should().OnlyHaveFiles(Array.Empty<string>());
GivenThatWeWantToBuildANetCoreApp.cs (5)
163outputDirectory.Should() 606outputDirectory.Should().NotHaveFile("Humanizer.resources.dll"); 607outputDirectory.Should().HaveFile(Path.Combine("fr", "Humanizer.resources.dll")); 637buildCommand.GetOutputDirectory().Should().Exist(); 639buildCommand.GetIntermediateDirectory().Should().Exist();
GivenThatWeWantToBuildAppsWithFrameworkRefs.cs (3)
64outputDirectory.Should().HaveFiles(expectedFiles); 93outputDirectory.Should().HaveFiles(expectedFiles); 102outputDirectory.Should().OnlyHaveFiles(Array.Empty<string>());
GivenThatWeWantToBuildASelfContainedApp.cs (5)
67outputDirectory.Should().HaveFiles(expectedFiles); 71outputDirectory.Should().OnlyHaveFiles(expectedFiles); 74outputDirectory.Should().NotHaveFiles(new[] { 230new DirectoryInfo(path).Should().NotExist("Runtime Pack should have been resolved from packs folder"); 476outputDirectory.Should().NotHaveFile($"hostfxr{FileNameSuffixes.CurrentPlatform.DynamicLib}"); // This file will only appear if SelfContained.
GivenThatWeWantToBuildASolutionWithNonAnyCPUPlatform.cs (1)
26.Should()
GivenThatWeWantToBuildASolutionWithNonDefaultConfiguration.cs (1)
40outputDirectory.Should().OnlyHaveFiles(new[] {
GivenThatWeWantToBuildASolutionWithNonDefaultConfigurationVB.cs (1)
41outputDirectory.Should().OnlyHaveFiles(new[] {
GivenThatWeWantToBuildAUnitTestProject.cs (1)
26outputDirectory.Should().HaveFile(@"XUnitTestProject.runtimeconfig.json");
GivenThatWeWantToBuildAWindowsDesktopProject.cs (1)
758buildCommand.GetOutputDirectory().Should().HaveFile("PresentationFramework.dll");
GivenThatWeWantToCopyLocalDependencies.cs (10)
54outputDirectory.Should().OnlyHaveFiles(expectedFiles); 81outputDirectory.Should().OnlyHaveFiles(new[] { 120outputDirectory.Should().OnlyHaveFiles(new[] { 157outputDirectory.Should().OnlyHaveFiles(new[] { 190outputDirectory.Should().OnlyHaveFiles(new[] { 226outputDirectory.Should().OnlyHaveFiles(new[] { 259outputDirectory.Should().OnlyHaveFiles(new[] { 295outputDirectory.Should().OnlyHaveFiles(new[] { 332outputDirectory.Should().HaveFiles(new[] { 348outputDirectory.Should().NotHaveFiles(new[] {
GivenThatWeWantToFilterSatelliteAssemblies.cs (2)
79outputDirectory.Should().OnlyHaveFiles(expectedFiles); 145outputDirectory.Should().OnlyHaveFiles(expectedFiles);
GivenThatWeWantToGenerateADepsFileForATool.cs (1)
196.Should()
GivenThatWeWantToGenerateGlobalUsings_BlazorWasm.cs (2)
29outputDirectory.Should().HaveFile(globalUsingsFileName); 63outputDirectory.Should().NotHaveFile(globalUsingsFileName);
GivenThatWeWantToGenerateGlobalUsings_DotNet.cs (8)
29outputDirectory.Should().HaveFile(globalUsingsFileName); 59outputDirectory.Should().NotHaveFile(globalUsingsFileName); 81outputDirectory.Should().HaveFile(globalUsingsFileName); 125outputDirectory.Should().HaveFile(globalUsingsFileName); 171outputDirectory.Should().HaveFile(globalUsingsFileName); 201outputDirectory.Should().HaveFile(globalUsingsFileName); 210outputDirectory.Should().HaveFile(globalUsingsFileName); 241outputDirectory.Should().HaveFile(globalUsingsFileName);
GivenThatWeWantToGenerateGlobalUsings_WebApp.cs (2)
30outputDirectory.Should().HaveFile(globalUsingsFileName); 70outputDirectory.Should().NotHaveFile(globalUsingsFileName);
GivenThatWeWantToGenerateGlobalUsings_Worker.cs (2)
29outputDirectory.Should().HaveFile(globalUsingsFileName); 64outputDirectory.Should().NotHaveFile(globalUsingsFileName);
GivenThatWeWantToPreserveCompilationContextForBuild.cs (3)
58outputDirectory.Sub("refs").Should().NotExist(); 62outputDirectory.Sub("refs").Should().OnlyHaveFiles(net462ReferenceOnlyAssemblies); 100outputDirectory.Should().OnlyHaveFiles(new string[] {
GivenThatWeWantToResolveConflicts.cs (1)
231outputDirectory.Should().NotHaveFile("Microsoft.Extensions.DependencyInjection.Abstractions.dll");
GivenThatWeWantToTargetNet471.cs (6)
58outputDirectory.Should().OnlyHaveFiles(new[] { 97outputDirectory.Should().OnlyHaveFiles(new[] { 132outputDirectory.Should().OnlyHaveFiles(new[] { 178outputDirectory.Should().OnlyHaveFiles(new[] { 227outputDirectory.Should().OnlyHaveFiles(new[] { 264outputDirectory.Should().OnlyHaveFiles(new[] {
GivenThatWeWantToUseVB.cs (1)
92outputDirectory.Should().OnlyHaveFiles(expectedOutputFiles);
GivenThereAreDefaultItems.cs (1)
476outputDirectory.Should().OnlyHaveFiles(new[] {
SourceLinkTests.cs (6)
111intermediateDir.Should().NotHaveFile("SourceLinkTestApp.sourcelink.json"); 130intermediateDir.Should().NotHaveFile("SourceLinkTestApp.sourcelink.json"); 149intermediateDir.Should().NotHaveFile("SourceLinkTestApp.sourcelink.json"); 169intermediateDir.Should().NotHaveFile("SourceLinkTestApp.sourcelink.json"); 252intermediateDir.Should().NotHaveFile("SourceLinkTestApp.sourcelink.json"); 286intermediateDir.Should().HaveFile("SourceLinkTestApp.sourcelink.json");
Microsoft.NET.Pack.Tests (3)
GivenThatWeWantToPackACrossTargetedLibrary.cs (1)
27outputDirectory.Should().OnlyHaveFiles(new[] {
GivenThatWeWantToPackASimpleLibrary.cs (2)
27packageDirectory.Should().OnlyHaveFiles(new[] 33outputDirectory.Should().OnlyHaveFiles(new[] {
Microsoft.NET.Publish.Tests (110)
GivenThatAPublishedDepsJsonShouldContainVersionInformation.cs (3)
50publishDirectory.Should().HaveFile(testProject.Name + ".deps.json"); 140publishDirectory.Should().HaveFile("System.Collections.Immutable.dll"); 230outputDirectory.Should().HaveFile(testProject.Name + ".deps.json");
GivenThatWeWantToExcludeAPackageFromPublish.cs (7)
62publishDirectory.Should().OnlyHaveFiles(expectedFiles); 112publishDirectory.Should().OnlyHaveFiles(expectedFiles); 173publishDirectory.Should().OnlyHaveFiles(expectedFiles); 234publishDirectory.Should().NotHaveFile("Newtonsoft.Json.dll"); 259publishDirectory.Should().HaveFile("Newtonsoft.Json.dll"); 260publishDirectory.Should().HaveFile("Newtonsoft.Json.Schema.dll"); 261publishDirectory.Should().NotHaveFile("Microsoft.Extensions.DependencyModel");
GivenThatWeWantToFilterSatelliteAssemblies.cs (2)
54publishDirectory.Should().OnlyHaveFiles(files); 77publishDirectory.Should().OnlyHaveFiles(new[] {
GivenThatWeWantToPreserveCompilationContext.cs (12)
70publishDirectory.Should().HaveFiles(new[] { 79refsDirectory.Should().NotExist(); 84refsDirectory.Should().HaveFile("System.IO.dll"); 86refsDirectory.Should().NotHaveFile("TestLibrary.dll"); 87refsDirectory.Should().NotHaveFile("Newtonsoft.Json.dll"); 203publishDirectory.Should().HaveFiles(new[] { 208publishDirectory.Should().NotHaveFile("Newtonsoft.Json.dll"); 209publishDirectory.Should().NotHaveFile("System.Data.SqlClient.dll"); 213refsDirectory.Should().HaveFile("System.IO.dll"); 216refsDirectory.Should().HaveFile("System.Data.SqlClient.dll"); 219refsDirectory.Should().NotHaveFile("TestLibrary.dll"); 220refsDirectory.Should().NotHaveFile("Newtonsoft.Json.dll");
GivenThatWeWantToPublishAComServerLibrary.cs (2)
34outputDirectory.Should().HaveFiles(filesPublished); 35publishDirectory.Should().HaveFiles(filesPublished);
GivenThatWeWantToPublishAFrameworkDependentApp.cs (2)
79publishDirectory.Should().NotHaveSubDirectories(); 80publishDirectory.Should().OnlyHaveFiles(expectedFiles);
GivenThatWeWantToPublishAHelloWorldProject.cs (18)
52outputDirectory.Should().HaveFiles(filesPublished); 53publishDirectory.Should().HaveFiles(filesPublished); 111outputDirectory.Should().HaveFiles(filesPublished); 112publishDirectory.Should().HaveFiles(filesPublished); 118outputDirectory.Should().NotHaveFiles(filesNotPublished); 119publishDirectory.Should().NotHaveFiles(filesNotPublished); 164publishDirectory.Should().HaveFile($"Hello.World{Constants.ExeSuffix}"); 227outputDirectory.Should().HaveFiles(filesPublished); 228publishDirectory.Should().HaveFiles(filesPublished); 361outputDirectory.Should().HaveFiles(filesPublished); 362publishDirectory.Should().HaveFiles(filesPublished); 380outputDirectory.Should().HaveFiles(filesPublished); 381publishDirectory.Should().HaveFiles(filesPublished); 884output.Should().HaveFiles(new[] { 893output.Should().HaveFiles(new[] { 900output.Should().NotHaveFiles(new[] { 908output.Should().HaveFile($"{testProject.Name}{Constants.ExeSuffix}"); 912output.Should().NotHaveFile($"{testProject.Name}{Constants.ExeSuffix}");
GivenThatWeWantToPublishAnAppWithLibrariesAndRid.cs (5)
28publishDirectory.Should().NotHaveSubDirectories(); 29publishDirectory.Should().HaveFiles(new[] { 47publishDirectory.Should().NotHaveFiles(new[] { 65publishDirectory.Should().NotHaveSubDirectories(); 66publishDirectory.Should().OnlyHaveFiles(new[] {
GivenThatWeWantToPublishAnUnpublishableProject.cs (1)
26publishDirectory.Should().NotExist();
GivenThatWeWantToPublishAProjectWithAllFeatures.cs (2)
31publishDirectory.Should().OnlyHaveFiles(expectedPublishFiles); 161publishCommand.GetOutputDirectory(targetFramework).Should().OnlyHaveFiles(expectedPublishFiles);
GivenThatWeWantToPublishAProjectWithDependencies.cs (11)
33publishDirectory.Should().OnlyHaveFiles(new[] { 75publishDirectory.Should().HaveFiles(new[] 133publishDirectory.Should().OnlyHaveFiles(new[] { 183publishDirectory.Should().HaveFiles(new[] { 192publishDirectory.Should().NotHaveFiles(new[] { 218publishDirectory.Should().HaveFile("TestApp.xml"); 222publishDirectory.Should().NotHaveFile("TestApp.xml"); 227publishDirectory.Should().HaveFile("TestLibrary.xml"); 231publishDirectory.Should().NotHaveFile("TestLibrary.xml"); 274appPublishDirectory.Should().HaveFile("NetStdLib.xml"); 278appPublishDirectory.Should().NotHaveFile("NetStdLib.xml");
GivenThatWeWantToPublishASelfContainedApp.cs (3)
157output.Should().HaveFiles(new[] { 203.Should() 243output.Should()
GivenThatWeWantToPublishASingleFileApp.cs (12)
247.Should() 264.Should() 290.Should() 349.Should() 364.Should() 379.Should() 394.Should() 422.Should() 450.Should() 482.Should() 499.Should() 514.Should()
GivenThatWeWantToPublishAToolProject.cs (2)
44.Should().HaveFile("consoledemo" + Constants.ExeSuffix); 62.Should().HaveFile("consoledemo" + Constants.ExeSuffix)
GivenThatWeWantToPublishAWebApp.cs (10)
42publishDirectory.Should().NotHaveSubDirectories(); 43publishDirectory.Should().HaveFiles(new[] { 86output.Should().HaveFiles(new[] { 97output.Should().NotHaveFiles(new[] { 145output.Should().OnlyHaveFiles(new[] { 207output.Should().HaveFiles(new[] { 216output.Should().HaveFiles(new[] { 223output.Should().NotHaveFiles(new[] { 231output.Should().HaveFile($"{testProject.Name}{Constants.ExeSuffix}"); 235output.Should().NotHaveFile($"{testProject.Name}{Constants.ExeSuffix}");
GivenThatWeWantToPublishReadyToRun.cs (6)
53publishDirectory.Should().HaveFile("System.Private.CoreLib.dll"); // self-contained 88publishDirectory.Should().NotHaveFiles(new[] { 97publishDirectory.Should().HaveFile("System.Private.CoreLib.dll"); // self-contained 395publishDirectory.Should().HaveFile("System.Private.CoreLib.dll"); 397publishDirectory.Should().NotHaveFile("System.Private.CoreLib.dll"); 422publishDirectory.Should().HaveFiles(pdbFiles);
GivenThatWeWantToPublishToClickOnce.cs (4)
85outputDirectory.Should().HaveFiles(new[] { 93outputDirectory.Should().HaveFiles(new[] { 97outputDirectory.Should().NotHaveFiles(new[] { 105outputDirectory.Should().HaveFiles(new[] {
GivenThatWeWantToStoreAProjectWithDependencies.cs (6)
81storeDirectory.Should().OnlyHaveFiles(files_on_disk); 124storeDirectory.Should().OnlyHaveFiles(files_on_disk); 161storeDirectory.Should().OnlyHaveFiles(files_on_disk); 251symbolsFolder.Should().NotExist(); 256newtonsoftSymbolsFolder.Should().Exist(); 298new DirectoryInfo(outputFolder).Should().OnlyHaveFiles(new List<string> {
PublishItemsOutputGroupTests.cs (1)
112.Should()
PublishNetFrameworkApp.cs (1)
38.Should()
Microsoft.NET.Restore.Tests (1)
GivenThatWeWantToUseFrameworkRoslyn.cs (1)
169new DirectoryInfo(toolsetPackageDir).Should().Exist();
Microsoft.NET.Sdk.BlazorWebAssembly.AoT.Tests (9)
WasmAoTPublishIntegrationTest.cs (9)
54publishDirectory.Should().HaveFiles(expectedFiles); 121publishDirectory.Should().HaveFiles(new[] 127publishDirectory.Should().HaveFiles(new[] 138publishDirectory.Should().HaveFiles(new[] 145publishDirectory.Should().HaveFiles(new[] 151publishDirectory.Should().HaveFiles(new[] 157publishDirectory.Should().HaveFiles(new[] 164publishDirectory.Should().HaveFiles(new[] 172publishDirectory.Should().HaveFiles(new[]
Microsoft.NET.Sdk.BlazorWebAssembly.Tests (78)
BlazorLegacyIntegrationTest50.cs (1)
71publishOutputDirectory.Should().HaveFiles(new[]
BlazorLegacyIntegrationTest60.cs (1)
64publishOutputDirectory.Should().HaveFiles(new[]
WasmBuildIncrementalismTest.cs (1)
78new DirectoryInfo(gzipCompressionDirectory).Should().Exist();
WasmBuildIntegrationTest.cs (1)
714.Should().NotExist();
WasmBuildLazyLoadTest.cs (4)
49outputDirectory.Should().HaveFiles(expectedFiles); 101outputDirectory.Should().HaveFiles(expectedFiles); 153outputDirectory.Should().HaveFiles(expectedFiles); 205outputDirectory.Should().HaveFiles(expectedFiles);
WasmPublishIntegrationTest.cs (70)
47publishDirectory.Should().HaveFiles(expectedFiles); 90publishDirectory.Should().HaveFiles(expectedFiles); 199publishDirectory.Should().HaveFiles(expectedFiles); 249publishDirectory.Should().HaveFiles(expectedFiles); 312publishDirectory.Should().HaveFiles(expectedFiles); 365publishDirectory.Should().HaveFiles(expectedFiles); 368new DirectoryInfo(Path.Combine(publishDirectory.ToString(), "wwwroot")).Should().HaveDirectory("different-path"); 432publishDirectory.Should().HaveFiles(expectedFiles); 435new DirectoryInfo(Path.Combine(publishDirectory.ToString(), "wwwroot")).Should().HaveDirectory("different-path"); 479publishDirectory.Should().HaveFiles(new[] 489publishDirectory.Should().HaveFiles(new[] 496publishDirectory.Should().HaveFiles(new[] 502publishDirectory.Should().HaveFiles(new[] 509publishDirectory.Should().HaveFiles(new[] 563publishDirectory.Should().HaveFiles(new[] 601publishOutputDirectory.Should().HaveFiles(new[] 608publishOutputDirectory.Should().HaveFiles(new[] 618publishOutputDirectory.Should().HaveFiles(new[] 625publishOutputDirectory.Should().HaveFiles(new[] 631publishOutputDirectory.Should().HaveFiles(new[] 638publishOutputDirectory.Should().HaveFiles(new[] 646publishOutputDirectory.Should().HaveFiles(new[] 654publishOutputDirectory.Should().HaveFiles(new[] 758publishOutputDirectory.Should().HaveFiles(new[] 805publishDirectory.Should().HaveFiles(new[] 811publishDirectory.Should().HaveFiles(new[] 822publishDirectory.Should().HaveFiles(new[] 829publishDirectory.Should().HaveFiles(new[] 835publishDirectory.Should().HaveFiles(new[] 842publishDirectory.Should().HaveFiles(new[] 850publishDirectory.Should().HaveFiles(new[] 858publishDirectory.Should().HaveFiles(new[] 899publishDirectory.Should().HaveFiles(new[] 909publishDirectory.Should().HaveFiles(new[] 915publishDirectory.Should().HaveFiles(new[] 922publishDirectory.Should().HaveFiles(new[] 966publishDirectory.Should().HaveFiles(new[] 972publishDirectory.Should().HaveFiles(new[] 983publishDirectory.Should().HaveFiles(new[] 990publishDirectory.Should().HaveFiles(new[] 996publishDirectory.Should().HaveFiles(new[] 1003publishDirectory.Should().HaveFiles(new[] 1011publishDirectory.Should().HaveFiles(new[] 1063publishDirectory.Should().HaveFiles(new[] 1069publishDirectory.Should().HaveFiles(new[] 1080publishDirectory.Should().HaveFiles(new[] 1087publishDirectory.Should().HaveFiles(new[] 1093publishDirectory.Should().HaveFiles(new[] 1099publishDirectory.Should().HaveFiles(new[] 1106publishDirectory.Should().HaveFiles(new[] 1114publishDirectory.Should().HaveFiles(new[] 1174publishDirectory.Should().HaveFiles(new[] 1305publishDirectory.Should().HaveFiles(new[] 1310publishDirectory.Should().HaveFiles(new[] 1316publishDirectory.Should().HaveFiles(new[] 1326publishDirectory.Should().HaveFiles(new[] 1335publishDirectory.Should().HaveFiles(new[] 1341publishDirectory.Should().HaveFiles(new[] 1350publishDirectory.Should().HaveFiles(new[] 1359publishDirectory.Should().HaveFiles(new[] 1366publishDirectory.Should().HaveFiles(new[] 1387publishDirectory.Should().HaveFiles(new[] 1393publishDirectory.Should().HaveFiles(new[] 1399publishDirectory.Should().HaveFiles(new[] 1408publishDirectory.Should().HaveFiles(new[] 1417publishDirectory.Should().HaveFiles(new[] 1423publishDirectory.Should().HaveFiles(new[] 1432publishDirectory.Should().HaveFiles(new[] 1441publishDirectory.Should().HaveFiles(new[] 1448publishDirectory.Should().HaveFiles(new[]
Microsoft.NET.Sdk.Razor.Tests (17)
BuildIntegrationTest.cs (1)
128new DirectoryInfo(Path.Combine(outputPath, "publish", "refs")).Should().NotExist();
MvcBuildIntegrationTest21NetFx.cs (4)
54new DirectoryInfo(Path.Combine(outputPath, "Views")).Should().NotExist(); 57new DirectoryInfo(Path.Combine(outputPath, "refs")).Should().Exist(); 77new DirectoryInfo(Path.Combine(outputPath, "refs")).Should().NotExist(); 78new DirectoryInfo(Path.Combine(outputPath, "Views")).Should().NotExist();
MvcBuildIntegrationTestLegacy.cs (5)
59new DirectoryInfo(Path.Combine(outputPath, "Views")).Should().NotExist(); 62new DirectoryInfo(Path.Combine(outputPath, "refs")).Should().NotExist(); 83new DirectoryInfo(Path.Combine(outputPath, "refs")).Should().NotExist(); 84new DirectoryInfo(Path.Combine(outputPath, "Views")).Should().NotExist(); 128new DirectoryInfo(Path.Combine(outputPath, "publish", "refs")).Should().NotExist();
PublishIntegrationTest.cs (7)
40new DirectoryInfo(Path.Combine(publishOutputPath, "refs")).Should().NotExist(); 41new DirectoryInfo(Path.Combine(publishOutputPath, "Views")).Should().NotExist(); 61new DirectoryInfo(Path.Combine(publishOutputPath, "refs")).Should().NotExist(); 62new DirectoryInfo(Path.Combine(publishOutputPath, "Views")).Should().NotExist(); 100new DirectoryInfo(Path.Combine(publishOutputPath, "Views")).Should().NotBeEmpty(); 147new DirectoryInfo(Path.Combine(publishOutputPath, "refs")).Should().NotExist(); 148new DirectoryInfo(Path.Combine(publishOutputPath, "Views")).Should().NotExist();
Microsoft.NET.ToolPack.Tests (2)
GivenThatWeWantToPackAToolProject.cs (2)
348packCommand.GetPackageDirectory().Should().HaveFile($"{testProject.Name}.1.0.0.nupkg"); 349packCommand.GetPackageDirectory().Should().NotHaveFile($"{testProject.Name}.{testProject.RuntimeIdentifier}.1.0.0.nupkg");