You've already forked linux-packaging-mono
Imported Upstream version 3.10.0
Former-commit-id: 172c8e3c300b39d5785c7a3e8dfb08ebdbc1a99b
This commit is contained in:
@ -13,10 +13,6 @@ using System.Net;
|
||||
|
||||
using NUnit.Framework;
|
||||
|
||||
#if TARGET_JVM
|
||||
using System.Globalization;
|
||||
using System.Reflection;
|
||||
#endif
|
||||
|
||||
|
||||
namespace MonoTests.System.Net
|
||||
@ -225,23 +221,6 @@ namespace MonoTests.System.Net
|
||||
}
|
||||
return new Uri ("file:///" + tempFile);
|
||||
}
|
||||
#if TARGET_JVM
|
||||
|
||||
private bool RunningOnUnix {
|
||||
get {
|
||||
Type t = Type.GetType("java.lang.System");
|
||||
MethodInfo mi = t.GetMethod("getProperty", new Type[] { typeof(string) });
|
||||
string osName = (string) mi.Invoke(null, new object[] { "os.name" });
|
||||
|
||||
if(osName == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return !osName.StartsWith("win", true, CultureInfo.InvariantCulture);
|
||||
}
|
||||
}
|
||||
|
||||
#else
|
||||
private bool RunningOnUnix {
|
||||
get {
|
||||
// check for Unix platforms - see FAQ for more details
|
||||
@ -250,6 +229,5 @@ namespace MonoTests.System.Net
|
||||
return ((platform == 4) || (platform == 128));
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user