473,762 Members | 7,418 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1222
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
2040
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 ;-) http://blogs.msdn.com/ericgu/archive/2004/10/15/242931.aspx Regards Richard Blewett - DevelopMentor http://staff.develop.com/richardb/weblog
0
1054
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 assembly. Both projects share a solution. I am trying to test a method that transforms some XML based on a stylesheet I have in the main assembly. The xslt
0
2488
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 first hurdle. I downloaded the latest version of NMock 2.0.0 RC1 from http://nmock.org/ Copied the NMock.dll to the project directory, and added a direct reference to it.
6
2078
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 think that the class itself should include unit tests, especially since it has to reference nunit.framework in order to compile/work, and I don't want to have to distribute the nunit.framework.dll with this class. So I created a new project,...
1
2505
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 both the MS Visual Web Developer 2005 Express Edition and the MS Visual Studio 2005 Professional Edition used to develop .ASP applications?
9
2117
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 "_cplusplus_" or "_win32_". My question is is there any way that I can make codes that can be compiled by the both beautiful compilers? Any comments or suggestions would be much appreciated. regards,
0
1002
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 debug the problem 4) Attempt to run the unit test again from the test results screen Then Visual Studio hangs for about a minute before the test begins However if I make some changes and then start the unit test then it recompiles the projects the...
1
2037
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 test cases last night. This morning, I checked out my new test case project, my solution file, and even my vsmdi file. Every time I run the wizard, I select Unit Test Wizard and click okay, and the wizard dialog box simply disappears.
3
2011
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 Studio 2005. Please help as this is very urgent! Thanks in advance....
0
9554
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9377
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10136
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9811
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8814
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6640
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3913
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3509
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2788
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.