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:
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