[System] Fix Process tests on watch
authorMarek Safar <marek.safar@gmail.com>
Mon, 20 Mar 2017 22:57:31 +0000 (23:57 +0100)
committerMarek Safar <marek.safar@gmail.com>
Mon, 20 Mar 2017 22:57:31 +0000 (23:57 +0100)
mcs/class/System/Test/System.Diagnostics/ProcessTest.cs

index cb3827785af4dab4ced082075e03b608d27e1861..be41016a4d2e1325995f6ca240d2c728f152f623 100644 (file)
@@ -23,6 +23,13 @@ namespace MonoTests.System.Diagnostics
        [TestFixture]
        public class ProcessTest
        {
+               static bool RunningOnUnix {
+                       get {
+                               int p = (int)Environment.OSVersion.Platform;
+                               return ((p == 128) || (p == 4) || (p == 6));
+                       }
+               }
+
                [Test]
                public void GetProcessById_MachineName_Null ()
                {
@@ -729,13 +736,6 @@ namespace MonoTests.System.Diagnostics
                        bytesRead = stm.EndRead (ar);
                }
 
-               static bool RunningOnUnix {
-                       get {
-                               int p = (int)Environment.OSVersion.Platform;
-                               return ((p == 128) || (p == 4) || (p == 6));
-                       }
-               }
-
                public int bytesRead = -1;
 
                [Test]