Assert::IsNotNull or Assert::IsNull do not work for my C++ unit test
| Newsgroups | gmane.comp.windows.dotnet.nunit.user |
|---|---|
| Message-ID | <OF2E310DA5.97438BB0-ON8525739F.0080E923-8525739F.00818D5D@coulter.com> |
Hello, I used to use Nunit to test my C# applications. But when I use Nunit to test some C++ application I got some problem. Assert::IsNotNull or Assert::IsNull do not work for for me. Below is the code snippet. I got "error C2665: 'NUnit::Framework::Assert::IsNotNull' : none of the 3 overloads could convert all the argument types ".What I did wrong? Histogram1D<T>* histoptr = new Histogram1D<T> (64); Assert::IsNotNull(histo, "Test object."); Assert::IsNull(histo, "Test object."); Thanks for any help. mailgatemia2 made the following annotations---------------------------------------------------------------------This message contains information that may be privileged or confidential and is the property of Beckman Coulter, Inc. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. --------------------------------------------------------------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/