[system] Add old monotouch test codepath
authorMarek Safar <marek.safar@gmail.com>
Thu, 12 Feb 2015 12:24:16 +0000 (13:24 +0100)
committerMarek Safar <marek.safar@gmail.com>
Thu, 12 Feb 2015 12:24:16 +0000 (13:24 +0100)
mcs/class/System/Test/System.Net.NetworkInformation/PingTest.cs

index c962c99208a8ddef9157366c4e51f21319151328..d9d9bfccb7c359099ca8ccb8fd5601bd34270f0c 100644 (file)
@@ -18,7 +18,11 @@ namespace MonoTests.System.Net.NetworkInformation
                public void PingSuccess()
                {
 #if MONOTOUCH
+#if XAMCORE_2_0
                        if (ObjCRuntime.Runtime.Arch == ObjCRuntime.Arch.SIMULATOR)
+#else
+                       if (MonoTouch.ObjCRuntime.Runtime.Arch == MonoTouch.ObjCRuntime.Arch.SIMULATOR)
+#endif
                                Assert.Ignore ("dyld: program was built for Mac OS X and cannot be run in simulator");
 #endif
                        var p = new Ping ().Send ("127.0.0.1");