473,396 Members | 2,089 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Visual C++ 2005 & Unit Test

Hello,

I am trying to generate tests for unmanaged C++ code, but I fail. Is that
possible or am i doing something wrong? If so, where can I find a sample
code? Thanks in advance.

Best wishes,
Diego Park
Nov 17 '05 #1
3 1207
Diego Park wrote:
Hello,

I am trying to generate tests for unmanaged C++ code, but I fail. Is
that possible or am i doing something wrong? If so, where can I find
a sample code? Thanks in advance.


Unit tests are for managed code only, unfortunately.

You can write a managed unit test that exercises unmanaged C++ functionality
through IJW or other interop, but you have to do it yourself - the "Create
Tests Wizard" can't do it for you.

-cd
Nov 17 '05 #2
Why don't you look at Boost Test library?

http://www.boost.org/libs/test/doc/

Nov 17 '05 #3
Thanks a lot for the replies. I will try Boot Test Library.

Best wishes,
Diego

"Nemanja Trifunovic" wrote:
Why don't you look at Boost Test library?

http://www.boost.org/libs/test/doc/

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

27
by: Richard Blewett [DevelopMentor] | last post by:
I've just seen on Eric Gunnerson's blog that C# is getting Edit and Continue in Whidbey. That will please alot of people - although me, I have mixed feelings about it ;-) ...
0
by: Omatase | last post by:
I have an xslt file I need to open at runtime. Here is my configuration: main assembly (dll) |-----xslt file unit test assembly I have a reference to my main assembly in my unit test...
0
by: swiftanthony | last post by:
Hi, I am currently trialing TDD (Test Driven Development) and have had good results so far. I recently heard about NMock and decided to give it a try, unfortunately I seem to be falling at the...
6
by: Michael Bray | last post by:
I've just inherited a fairly large project with multiple classes. The developer also wrote a huge number of unit tests (using NUnit) to validate that the classes work correctly. However, I don't...
1
by: Dr T | last post by:
Hi! I downloaded MS Visual Web Developer 2005 Express Edition, MS .NET Framework SDK v2.0, and MS SQL Server 2005. Subsequently, I bought MS Visual Studio 2005 Professional Edition. 1) Are...
9
by: Alexander Dong Back Kim | last post by:
Dear all, I'm doing an experimental thing that the codes I wrote can be compiled by both VS2005 and gcc. I saw somewhere on the web that I can use compiler's pre-defined value something life...
0
by: usenet | last post by:
I have a large .Net solution that includes several projects and a large number of unit tests. I find that if I 1) Run my tests 2) Find a problem in a unit test 3) Set some breakpoints to help...
1
by: =?Utf-8?B?cmFuZHkxMjAw?= | last post by:
I'm using Visual Studio 2005 Team Edition for Software Developers. I've created new a test project and tests using the wizard under Test -New Test... That seemed to work. I checked in my new...
3
by: alag20 | last post by:
Hi, I have been using Visual Studio 2005 for quite some time. Though I know that if you create an app, you can write click and say Create unit tests. But I cant see this option on my copy of Visual...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.