I have a .NET library, targeting .NET 4.5
which contains some
Debug.Assert (condition);
or even
Debug.Fail ("foo");
I then have UnitTests project (still .NET 4.5
, nunit 2.6.2
) referencing my library. When I'm running the tests, or Debug the tests, the execution doesn't stop when one of the assertion fail. The exception Debug.Assert()
should throw is swallowed and ignored.
I'm running Xamarin Studio 4.2. the same projects behave as expected on Visual Studio.
The same thing happen if my library is build on Xamarin.iOS
and I'm referencing it from a Xamarin.iOS
app. The exception is printed on the console, but that's it.
All my builds are done in DEBUG obviously.
Is this a known bug, am I missing something, am I doing something wrong >