I've included the necessary assemblies into a Windows Class project in VS2008. When I start to try to write a test I get a red squiggle line and the message [Test] is not a valid attribute. I've used NUnit before... maybe an earlier version. What am I doing wrong? I'm on version 2.5.2.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit;
using NUnit.Core;
using NUnit.Framework;
namespace MyNamespace
{
public class LoginTests
{
[Test]
public void CanLogin()
{
}
}
}
I had a similar problem to this using version 2.5.3. The problem was that I was looking for the dll files in the "lib" directory of my nunit installation when I should have been looking in the "framework" directory. So when I referenced the "framework\nunit.framework.dll" dll everything worked. Hope this helps
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With