add Fact attribute instead of removed ConditionalFact (dotnet/corefx#34962)
authorTomas Weinfurt <tweinfurt@yahoo.com>
Wed, 30 Jan 2019 20:58:02 +0000 (12:58 -0800)
committerGitHub <noreply@github.com>
Wed, 30 Jan 2019 20:58:02 +0000 (12:58 -0800)
Commit migrated from https://github.com/dotnet/corefx/commit/dfd25d13a9d0f5f86d3964eb5bf6b33b7b22a3cc

src/libraries/System.Net.NameResolution/tests/PalTests/NameResolutionPalTests.cs

index 21008a3..3dd2f6b 100644 (file)
@@ -35,6 +35,7 @@ namespace System.Net.NameResolution.PalTests
             Assert.NotNull(hostEntry.Aliases);
         }
 
+        [Fact]
         public void TryGetAddrInfo_HostName()
         {
             string hostName = NameResolutionPal.GetHostName();
@@ -45,7 +46,7 @@ namespace System.Net.NameResolution.PalTests
             SocketError error = NameResolutionPal.TryGetAddrInfo(hostName, out hostEntry, out nativeErrorCode);
             if (error == SocketError.HostNotFound && (RuntimeInformation.IsOSPlatform(OSPlatform.Linux) || RuntimeInformation.IsOSPlatform(OSPlatform.OSX)))
             {
-                // On Unix, we are not guaranteed to be able to resove the local host. The ability to do so depends on the 
+                // On Unix, we are not guaranteed to be able to resove the local host. The ability to do so depends on the
                 // machine configurations, which varies by distro and is often inconsistent.
                 return;
             }
@@ -59,7 +60,7 @@ namespace System.Net.NameResolution.PalTests
                     throw new InvalidOperationException("Name resolution failure preventable with retry");
                 }
             }
-            
+
             Assert.Equal(SocketError.Success, error);
             Assert.NotNull(hostEntry);
             Assert.NotNull(hostEntry.HostName);
@@ -101,6 +102,7 @@ namespace System.Net.NameResolution.PalTests
             Assert.NotNull(name);
         }
 
+        [Fact]
         public void TryGetAddrInfo_HostName_TryGetNameInfo()
         {
             string hostName = NameResolutionPal.GetHostName();