Test exception
| Newsgroups | gmane.comp.windows.dotnet.nunit.user |
|---|---|
| Message-ID | <OF708780D4.906247F4-ON852573A0.00726DAC-852573A0.0072E81F@coulter.com> |
Hello, Can somebody give me an example of testing exception in C++? I tried use the same way as we did in C# but it does not work: [Test] [ExpectedException(typeof(std::bad_alloc))] void TestCurrentChannel(); Thank you, Haiping 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/