Re: Unittest in a windows app

2014-12-20 Thread Rainer Schuetze via Digitalmars-d-learn
On 19.12.2014 22:39, Dan Nestor wrote: Hello everybody, this is my first post on this forum. I have a question about unit testing a Windows application. I have slightly modified Visual D's default Windows application stub to the following: [...] try { Runtime.initialize()

Re: Unittest in a windows app

2014-12-20 Thread Dicebot via Digitalmars-d-learn
Can it be because Windows main wrapper consumes exceptions or spawn a separate thread for that or something like that?

Re: Unittest in a windows app

2014-12-20 Thread Dan Nestor via Digitalmars-d-learn
I managed to isolate the problem to the following. Program 1 below works (displays unit test failure when run), while program 2 does not. * Program 1 * import std.stdio; unittest { assert(false); } void main() { writeln("Hello D-World!"); } * Program 2 * module winm

Unittest in a windows app

2014-12-19 Thread Dan Nestor via Digitalmars-d-learn
Hello everybody, this is my first post on this forum. I have a question about unit testing a Windows application. I have slightly modified Visual D's default Windows application stub to the following: module winmain; import core.runtime; import core.sys.windows.windows; unittest { ass