59 references to HaveFile
dotnet.Tests (10)
CommandTests\Pack\PackTests.cs (3)
215
.And.
HaveFile
("TestLibraryWithConfiguration.1.0.0.nupkg");
310
.And.
HaveFile
("PackNoCsproj.1.2.3.nupkg");
412
.And.
HaveFile
("PackNoCsproj.1.0.0.nupkg");
CommandTests\Run\RunFileTests.cs (2)
1573
.And.
HaveFile
("config.json"); // the JSON is included as content and hence copied
1596
.And.
HaveFile
("Program.deps.json");
CommandTests\Solution\Add\GivenDotnetSlnAdd.cs (2)
682
.And.
HaveFile
("App.dll");
687
.And.
HaveFile
("Lib.dll");
CommandTests\Solution\Remove\GivenDotnetSlnRemove.cs (1)
523
outputDirectory.Should().
HaveFile
("App.dll");
GivenThatTheUserIsRunningDotNetForTheFirstTime.cs (2)
150
.
HaveFile
($"{GetDotnetVersion()}.dotnetFirstUseSentinel");
158
.
HaveFile
($"{GetDotnetVersion()}.aspNetCertificateSentinel");
Microsoft.NET.Build.Tests (28)
ArtifactsOutputPathTests.cs (2)
575
outputDir.Should().Exist().And.
HaveFile
(hostfxrName);
579
publishDir.Should().Exist().And.
HaveFile
(hostfxrName);
GivenThatWeWantToBuildADesktopExe.cs (5)
589
outputDirectory.Should().
HaveFile
("System.Security.Cryptography.Algorithms.dll");
928
outputDirectory.Should().
HaveFile
(@"fr\FluentValidation.resources.dll");
985
outputDirectory.Should().
HaveFile
("System.Diagnostics.Debug.xml");
1141
outputDirectory.Should().
HaveFile
("Microsoft.Build.xml");
1174
void ShouldHave(string file) => directoryInfo.Should().
HaveFile
(file);
GivenThatWeWantToBuildALibrary.cs (3)
890
outputDirectory.Should().
HaveFile
(runtimeConfigName);
934
outputDirectory.Should().
HaveFile
(runtimeConfigName);
996
outputDirectory.Should().
HaveFile
("Newtonsoft.Json.dll");
GivenThatWeWantToBuildAnAppWithLibrary.cs (2)
120
cultureDir.Should().
HaveFile
("TestApp.resources.dll");
121
cultureDir.Should().
HaveFile
("TestLibrary.resources.dll");
GivenThatWeWantToBuildAnAppWithSharedProject.cs (1)
64
outputPath.Sub("MyFolder").Should().
HaveFile
("TextFile1.txt");
GivenThatWeWantToBuildANetCoreApp.cs (2)
164
.
HaveFile
(runtimeconfigDevFileName);
607
outputDirectory.Should().
HaveFile
(Path.Combine("fr", "Humanizer.resources.dll"));
GivenThatWeWantToBuildAUnitTestProject.cs (1)
26
outputDirectory.Should().
HaveFile
(@"XUnitTestProject.runtimeconfig.json");
GivenThatWeWantToBuildAWindowsDesktopProject.cs (1)
758
buildCommand.GetOutputDirectory().Should().
HaveFile
("PresentationFramework.dll");
GivenThatWeWantToGenerateGlobalUsings_BlazorWasm.cs (1)
29
outputDirectory.Should().
HaveFile
(globalUsingsFileName);
GivenThatWeWantToGenerateGlobalUsings_DotNet.cs (7)
29
outputDirectory.Should().
HaveFile
(globalUsingsFileName);
81
outputDirectory.Should().
HaveFile
(globalUsingsFileName);
125
outputDirectory.Should().
HaveFile
(globalUsingsFileName);
171
outputDirectory.Should().
HaveFile
(globalUsingsFileName);
201
outputDirectory.Should().
HaveFile
(globalUsingsFileName);
210
outputDirectory.Should().
HaveFile
(globalUsingsFileName);
241
outputDirectory.Should().
HaveFile
(globalUsingsFileName);
GivenThatWeWantToGenerateGlobalUsings_WebApp.cs (1)
30
outputDirectory.Should().
HaveFile
(globalUsingsFileName);
GivenThatWeWantToGenerateGlobalUsings_Worker.cs (1)
29
outputDirectory.Should().
HaveFile
(globalUsingsFileName);
SourceLinkTests.cs (1)
286
intermediateDir.Should().
HaveFile
("SourceLinkTestApp.sourcelink.json");
Microsoft.NET.Publish.Tests (20)
GivenThatAPublishedDepsJsonShouldContainVersionInformation.cs (3)
50
publishDirectory.Should().
HaveFile
(testProject.Name + ".deps.json");
140
publishDirectory.Should().
HaveFile
("System.Collections.Immutable.dll");
230
outputDirectory.Should().
HaveFile
(testProject.Name + ".deps.json");
GivenThatWeWantToExcludeAPackageFromPublish.cs (2)
259
publishDirectory.Should().
HaveFile
("Newtonsoft.Json.dll");
260
publishDirectory.Should().
HaveFile
("Newtonsoft.Json.Schema.dll");
GivenThatWeWantToPreserveCompilationContext.cs (3)
84
refsDirectory.Should().
HaveFile
("System.IO.dll");
213
refsDirectory.Should().
HaveFile
("System.IO.dll");
216
refsDirectory.Should().
HaveFile
("System.Data.SqlClient.dll");
GivenThatWeWantToPublishAHelloWorldProject.cs (2)
164
publishDirectory.Should().
HaveFile
($"Hello.World{Constants.ExeSuffix}");
908
output.Should().
HaveFile
($"{testProject.Name}{Constants.ExeSuffix}");
GivenThatWeWantToPublishAProjectWithDependencies.cs (3)
218
publishDirectory.Should().
HaveFile
("TestApp.xml");
227
publishDirectory.Should().
HaveFile
("TestLibrary.xml");
274
appPublishDirectory.Should().
HaveFile
("NetStdLib.xml");
GivenThatWeWantToPublishAToolProject.cs (3)
44
.Should().
HaveFile
("consoledemo" + Constants.ExeSuffix);
62
.Should().
HaveFile
("consoledemo" + Constants.ExeSuffix)
63
.And.
HaveFile
(HostfxrName);
GivenThatWeWantToPublishAWebApp.cs (1)
231
output.Should().
HaveFile
($"{testProject.Name}{Constants.ExeSuffix}");
GivenThatWeWantToPublishReadyToRun.cs (3)
53
publishDirectory.Should().
HaveFile
("System.Private.CoreLib.dll"); // self-contained
97
publishDirectory.Should().
HaveFile
("System.Private.CoreLib.dll"); // self-contained
395
publishDirectory.Should().
HaveFile
("System.Private.CoreLib.dll");
Microsoft.NET.TestFramework (1)
Assertions\DirectoryInfoAssertions.cs (1)
47
HaveFile
(expectedFile);