Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
Dear all,

I have a problem with NUnit: I have a testing project in vs2008 pro(C# language). My project work with Unit test tool in VS2008 but when I try to run it in NUnit, there is an error:

"This assembly was not built with any known testing project"

I have searched for this, it said that many people meet this problem but there is no answer why it happen :(

I'm working with
NUnit-2.5.9.10348
VS2008 pro
Posted
Updated 1-Mar-11 20:29pm
v2

 
Share this answer
 
Dear all,

I find out the problem, it may helps someone who is getting this trouble too.

I have create unit test code with vs2008 automatically, so it uses [TestClass()] and [TestMethod()] to declare with vs 2008 while NUnit uses [TestFixture] and [Test].

That's why NUnit did not recognize my unit test method.
 
Share this answer
 
Comments
fjdiewornncalwe 11-Mar-11 14:33pm    
This means that you were using the Microsoft Testing tools and not NUnit. (Info for anyone wondering...)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900