Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/guiunit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Bjarne Kvinge <rolf@xamarin.com>2015-05-22 14:01:19 +0300
committerRolf Bjarne Kvinge <rolf@xamarin.com>2015-05-22 14:01:24 +0300
commitaa5878ba70b95b47cd6246dbebedc7d0ec316da9 (patch)
treef7dab09b741404c9716a6b88c556dd80e48970ac /src/framework/Internal
parenta28666e5555990c7b76fe0d5d520c095fb5d4665 (diff)
Create a xammac-mobile GuiUnit project file.
Diffstat (limited to 'src/framework/Internal')
-rwxr-xr-xsrc/framework/Internal/RuntimeFramework.cs2
-rwxr-xr-xsrc/framework/Internal/TestExecutionContext.cs2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/framework/Internal/RuntimeFramework.cs b/src/framework/Internal/RuntimeFramework.cs
index a34c390..abf2150 100755
--- a/src/framework/Internal/RuntimeFramework.cs
+++ b/src/framework/Internal/RuntimeFramework.cs
@@ -181,6 +181,7 @@ namespace NUnit.Framework.Internal
else /* It's windows */
if (major == 2)
{
+#if !XAMMAC
RegistryKey key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\.NETFramework");
if (key != null)
{
@@ -199,6 +200,7 @@ namespace NUnit.Framework.Internal
}
}
}
+#endif
}
currentFramework = new RuntimeFramework(runtime, new Version(major, minor));
diff --git a/src/framework/Internal/TestExecutionContext.cs b/src/framework/Internal/TestExecutionContext.cs
index 340b4f2..d7e7bb6 100755
--- a/src/framework/Internal/TestExecutionContext.cs
+++ b/src/framework/Internal/TestExecutionContext.cs
@@ -481,7 +481,9 @@ namespace NUnit.Framework.Internal
private void StartTracing()
{
+#if !XAMMAC
System.Diagnostics.Trace.Listeners.Add( new TextWriterTraceListener( traceWriter, "NUnit" ) );
+#endif
}
#endif