-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBrowserTestHostTests.cs
More file actions
24 lines (21 loc) · 956 Bytes
/
BrowserTestHostTests.cs
File metadata and controls
24 lines (21 loc) · 956 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
namespace DotPilot.UITests;
[TestFixture]
public sealed class BrowserTestHostTests
{
[Test]
public void RunArgumentsKeepUiAutomationEnabledWithoutDisablingBuildChecks()
{
const string projectPath = "/repo/DotPilot/DotPilot.csproj";
var arguments = BrowserTestHost.CreateRunArguments(projectPath);
Assert.That(arguments, Does.Contain("run"));
Assert.That(arguments, Does.Contain("-c"));
Assert.That(arguments, Does.Contain("Release"));
Assert.That(arguments, Does.Contain("-f"));
Assert.That(arguments, Does.Contain("net10.0-browserwasm"));
Assert.That(arguments, Does.Contain("-p:IsUiAutomationMappingEnabled=True"));
Assert.That(arguments, Does.Contain("--project"));
Assert.That(arguments, Does.Contain(projectPath));
Assert.That(arguments, Does.Contain("--no-launch-profile"));
Assert.That(arguments, Does.Not.Contain("--no-build"));
}
}