John John
John John

Reputation: 1

This assembly was not built with any known testing framework Error when i try to run Nuint test inside VS 2010

I have a c-sharp project inside my visual studio 2010 express , so i did the following to be able to run the Nunit test:- 1. i download the "NUnit-2.6.1.msi". 2, i add a reference to the "Nunit.framework.dll" from the C:\Program Files\NUnit 2.6.1\bin\framework 3. i add the folloiwng configuration from "External Tool"

But when i try to run the Nunit test from Visual studio the following error occured:- This assembly was not built with any known testing framework

Can anyone help me in solving this problem ?? Best Regards

Upvotes: 2

Views: 5050

Answers (2)

Arun Kumar
Arun Kumar

Reputation: 11

Maybe you are loading an old dll. Check that your dll is the one containing your latest changes. See also NUnit Error: Not a test assembly

Upvotes: 1

Mike Circuitry
Mike Circuitry

Reputation: 890

I ran into this problem once, I solved it by doing the following:

  1. Adding an Using statement for NUnit (using NUnit.Framework;)
  2. The class attribute should be [TestFixture] and NOT [TestClass]
  3. Decorate your Test methods with the attribute [Test] and NOT [TestMethod]

Hope this helps

Upvotes: 9

Related Questions