NUnit [Test] is not a valid attribute
.net, nunit, tdd, unit-testing
Solution
It is the extra `using` lines getting you in trouble. Only use `using NUnit.Framework;`
Internally NUnit.Core also has a type named `Test` and you are colliding with that.
Altenatively you could use `[TestAttribute]` fully spelling out the Attribute part resolves the collision.
Problem
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() { } } } ```