24 references to TestOptions
dotnet-watch.Tests (24)
Browser\BrowserTests.cs (1)
36
var url = $"http://localhost:{
TestOptions
.GetTestPort()}";
Build\EvaluationTests.cs (3)
444
var options =
TestOptions
.GetEnvironmentOptions(workingDirectory: testDirectory, muxerPath: MuxerPath);
509
var options =
TestOptions
.GetEnvironmentOptions(workingDirectory: Path.GetDirectoryName(project1Path)!, muxerPath: MuxerPath);
547
var options =
TestOptions
.GetEnvironmentOptions(workingDirectory: testDir, muxerPath: MuxerPath) with { TestOutput = testDir };
CommandLine\EnvironmentOptionsTests.cs (1)
14
var envOptions =
TestOptions
.GetEnvironmentOptions(workingDirectory);
CommandLine\ProgramTests.cs (2)
24
TestOptions
.GetCommandLineOptions(["--verbose"]),
26
TestOptions
.GetEnvironmentOptions(workingDirectory: testAsset.Path, TestContext.Current.ToolsetUnderTest.DotNetHostPath, testAsset),
FileWatcher\FileWatcherTests.cs (1)
75
: FileWatcher(logger,
TestOptions
.GetEnvironmentOptions())
HotReload\ApplyDeltaTests.cs (5)
862
var port =
TestOptions
.GetTestPort();
918
var port =
TestOptions
.GetTestPort();
931
var port =
TestOptions
.GetTestPort();
956
var port =
TestOptions
.GetTestPort();
978
var port =
TestOptions
.GetTestPort();
HotReload\CompilationHandlerTests.cs (2)
18
var options =
TestOptions
.GetProjectOptions(["--project", hostProject]);
20
var environmentOptions =
TestOptions
.GetEnvironmentOptions(Environment.CurrentDirectory, "dotnet");
HotReload\RuntimeProcessLauncherTests.cs (2)
100
var environmentOptions =
TestOptions
.GetEnvironmentOptions(workingDirectory ?? testAsset.Path, TestContext.Current.ToolsetUnderTest.DotNetHostPath, testAsset);
104
TestOptions
.GetCommandLineOptions(["--verbose", ..args]),
TestUtilities\MockFileSetFactory.cs (1)
12
new BuildReporter(NullLogger.Instance, new GlobalOptions(),
TestOptions
.GetEnvironmentOptions(Environment.CurrentDirectory, "dotnet") is var options ? options : options))
Watch\BuildEvaluatorTests.cs (2)
14
var environmentOptions =
TestOptions
.GetEnvironmentOptions() with
29
RootProjectOptions =
TestOptions
.ProjectOptions,
Watch\NoRestoreTests.cs (4)
14
environmentOptions ??=
TestOptions
.GetEnvironmentOptions();
26
RootProjectOptions =
TestOptions
.GetProjectOptions(args),
58
var context = CreateContext([],
TestOptions
.GetEnvironmentOptions() with { SuppressMSBuildIncrementalism = true });
68
var context = CreateContext(["--no-restore"],
TestOptions
.GetEnvironmentOptions() with { SuppressMSBuildIncrementalism = true });