我已经将必要的程序集包含在VS2008的Windows类项目中。当我开始尝试编写测试时,红色波浪线出现,并显示“[Test]”不是有效属性的信息。我以前使用过NUnit...也许是早期版本。我做错了什么?我正在使用版本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()
{
}
}
}