diff options
author | Rolf Bjarne Kvinge <rolf@xamarin.com> | 2015-05-22 14:01:19 +0300 |
---|---|---|
committer | Rolf Bjarne Kvinge <rolf@xamarin.com> | 2015-05-22 14:01:24 +0300 |
commit | aa5878ba70b95b47cd6246dbebedc7d0ec316da9 (patch) | |
tree | f7dab09b741404c9716a6b88c556dd80e48970ac /src/framework/Internal | |
parent | a28666e5555990c7b76fe0d5d520c095fb5d4665 (diff) |
Create a xammac-mobile GuiUnit project file.
Diffstat (limited to 'src/framework/Internal')
-rwxr-xr-x | src/framework/Internal/RuntimeFramework.cs | 2 | ||||
-rwxr-xr-x | src/framework/Internal/TestExecutionContext.cs | 2 |
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
|