This will unfortunately not work out, as the tests must pass on several machines (Continuous Integrations servers), some of them might well be 32-Bit. This is not under my control.
I managed to get the test to pass (see post #3). I do not have the slightest clue, why this worked and changed the behaviour, but it worked excatly as described.
Also, if NCrunch assumed to setup a 32-Bit environment, wouldn't then also run the code under test in this environment? In this case the method OSIs64Bit would return false in the same way as the comparison expression in the Assert statement. Both arguments would be false and the test passes.
The OSIs64Bit() method is nothing else than:
Code:
public static bool OSIs64Bit()
{
return IntPtr.Size == 8;
}
So, for me it's working (at least) now. So no problem at the moment.
This post is more or less meant as a hint for you that there is something strange going on...