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()
Can it be because Windows main wrapper consumes exceptions or
spawn a separate thread for that or something like that?
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
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