Do we not have a flag for if it's compiled for tests, rather than release?
On 14 Dec 2014 05:14, Edward Ned Harvey (mono)
edward.harvey.m...@clevertrove.com wrote:
From: Miguel de Icaza [mailto:mig...@xamarin.com]
We would love a test case to add to the test suite.
We are building a
From: mar...@my2cents.co.uk [mailto:mar...@my2cents.co.uk] On Behalf
Of Martin Thwaites
Do we not have a flag for if it's compiled for tests, rather than release?
I don't need a flag to distinguish between tests release - I need one to
determine if the test is being run on mono or windows.
From: Alexander Köplinger [mailto:alex.koeplin...@outlook.com]
You can find out if you run on Mono by checking if Type.GetType
(Mono.Runtime) != null.
That's helpful, but doesn't quite solve it, because compilation will fail on
windows ...
I'm looking for something like this...
#ifdef
Using Reflection maybe?
On Sun, Dec 14, 2014, 15:45 Edward Ned Harvey (mono)
edward.harvey.m...@clevertrove.com wrote:
From: Alexander Köplinger [mailto:alex.koeplin...@outlook.com]
You can find out if you run on Mono by checking if Type.GetType
(Mono.Runtime) != null.
That's helpful,
I'm curious: why do you need it to compile with MS.NET if you're testing Mono
stuff?
-- Alex
From: edward.harvey.m...@clevertrove.com
To: alex.koeplin...@outlook.com
CC: mono-devel-list@lists.ximian.com
Subject: RE: [Mono-dev] Open source .Net, and TLS 1.1 1.2
Date: Sun, 14 Dec 2014
Wouldn't
#if __MonoCS__
do what you want?
Mono edward.harvey.m...@clevertrove.com wrote on 2014-12-14 at 18:44 +0100:
From: Alexander Köplinger [mailto:alex.koeplin...@outlook.com]
You can find out if you run on Mono by checking if Type.GetType
(Mono.Runtime) != null.
That's helpful, but