Skip to content

Commit

Permalink
[browser][tests] Activate System.Runtime.Extensions UserName tests (#…
Browse files Browse the repository at this point in the history
…39692)

- Added specific tests for Browser
  • Loading branch information
kjpou1 authored Jul 21, 2020
1 parent cde939d commit bf0076c
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

namespace System.Tests
{
[ActiveIssue("https://github.com/dotnet/runtime/issues/38164", TestPlatforms.Browser)]
public class EnvironmentUserName
{
[Fact]
Expand Down Expand Up @@ -36,5 +35,14 @@ public void UserName_MatchesEnvironment_Windows()
{
Assert.Equal(Environment.GetEnvironmentVariable("USERNAME"), Environment.UserName);
}

[Fact]
[PlatformSpecific(TestPlatforms.Browser)]
public void UserName_MatchesEnvironment_Browser()
{
string name = Environment.UserName;
Assert.False(string.IsNullOrWhiteSpace(name));
Assert.Equal("Browser", name);
}
}
}

0 comments on commit bf0076c

Please sign in to comment.