Running NUnit managed C++ Tests

In a C++ project, I am trying to write unit tests in managed c++ using the following kind of thing:

#using <mscorlib.dll>
using namespace NUnit::Framework;
using namespace System;


public __gc class UnitTest



void Test1()


};


everything builds and resharper launches unit test runner when i run test, but i get no output and test runner never shows that the test was run.

am i missing something here?

1 comment
Comment actions Permalink

Officially, ReSharper doesn't support C++
It could sometimes occasionally run tests from there, but we've never tried
this here.
We are currently working on a new UnitTestRunner, and I hope new version
will handler C++ tests properly

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"vinny casharelli" <vinny.casharelli@gmail.com> wrote in message
news:8354122.1170430945051.JavaMail.itn@is.intellij.net...

In a C++ project, I am trying to write unit tests in managed c++ using the
following kind of thing:

>

#using <mscorlib.dll>
using namespace NUnit::Framework;
using namespace System;

>


public __gc class UnitTest
{
public:
UnitTest(void) {}

>


void Test1()
{
Assert::IsTrue(false, "Fail");
}

>

};

>
>

everything builds and resharper launches unit test runner when i run test,
but i get no output and test runner never shows that the test was run.

>

am i missing something here?



0

Please sign in to leave a comment.