1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
4 
5 using Xunit;
6 
7 namespace System.Tests
8 {
9     public class EnvironmentUserDomainName
10     {
11         [Fact]
12         [SkipOnTargetFramework(~TargetFrameworkMonikers.Uap)]
UserDomainNameIsHardCodedOnUap()13         public void UserDomainNameIsHardCodedOnUap()
14         {
15             Assert.Equal("Windows Domain", Environment.UserDomainName);
16         }
17 
18         [Fact]
19         [SkipOnTargetFramework(TargetFrameworkMonikers.Uap)]
UserDomainNameIsCorrectOnNonUap()20         public void UserDomainNameIsCorrectOnNonUap()
21         {
22             // Highly unlikely anyone is using domain with this name
23             Assert.NotEqual("Windows Domain", Environment.UserDomainName);
24         }
25     }
26 }
27