-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement workaround for Aspire dashboard launching (#46100)
- Loading branch information
Showing
4 changed files
with
48 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
#nullable enable | ||
|
||
namespace Microsoft.DotNet.Watch.UnitTests; | ||
|
||
public class BrowserConnectorTests | ||
{ | ||
[Theory] | ||
[InlineData(null, "https://localhost:1234", "https://localhost:1234")] | ||
[InlineData("", "https://localhost:1234", "https://localhost:1234")] | ||
[InlineData(" ", "https://localhost:1234", "https://localhost:1234")] | ||
[InlineData("", "a/b", "a/b")] | ||
[InlineData("x/y", "a/b", "a/b")] | ||
[InlineData("a/b?X=1", "https://localhost:1234", "https://localhost:1234/a/b?X=1")] | ||
[InlineData("https://localhost:1000/a/b", "https://localhost:1234", "https://localhost:1000/a/b")] | ||
[InlineData("https://localhost:1000/x/y?z=u", "https://localhost:1234/a?b=c", "https://localhost:1000/x/y?z=u")] | ||
public void GetLaunchUrl(string? profileLaunchUrl, string outputLaunchUrl, string expected) | ||
{ | ||
Assert.Equal(expected, BrowserConnector.GetLaunchUrl(profileLaunchUrl, outputLaunchUrl)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters