I am using ReSharper to run unit tests developed in C#/NUnit. When I unit test a C++/CLI class, all my tests pass, but then the following message box pops up; “Task Runner Application has stopped working”. The class I am testing does not have anything unmanaged:
public ref class MyClass
{
public:
MyClass(
array<double>^ rawPrices,
array<DateTime>^ priceDates)
{
// some unmanaged C++ code runs here
}
(snip)
~MyClass()
{
}
private:
int numDays;
array<double>^ Prices;
array<double>^ Discounts;
};
When all tests succeed, the message pops up.
However, when I switch to debugging my unit tests, the tests just succeed.
The library I am testing is compiled in Release x64 mode.
Does this peculiar behavior indicate that there is something wrong with MyClass?
The reason for this peculiar behavior was as follows: I had a recursive method calling itself in an infinite loop.