我不断得到:
The type or namespace name 'TestSuite' could not be found (are you missing a using directive or an assembly reference?)
我使用 Visual Studio 2010,并通过 NuGet 安装了最新的 NUnit 和 selenium 参考。这是代码:
using NUnit.Framework;
namespace SeleniumTests
{
public class ManifestTestSuite
{
[Suite]
public static TestSuite Suite
{
get
{
TestSuite suite = new TestSuite("MyTestSuite");
suite.Add(new AddAll());
suite.Add(new RemoveAll());
return suite;
}
}
}
}