3
我想在数组中使用NUnit的Sequential属性。在NUnit的顺序测试属性中使用数组
string[] oldSitesArray = new string[]
{
"http://www.LegacySite.com",
"http://someURLgoeshere.com"
};
string[] newSitesArray = new string[]
{
"http://www.LegacySiteUpdatedURL.com",
"http://someURLgoeshereUpdatedSite.com"
};
[Test]
public void keywordsTest()
{
Assert.IsTrue(this.scc.metaKeywordsChecker(oldSites, newSites));
}
这里的目标是传入两个数组(使用顺序属性)。一个数组包含遗留网站URL,第二个数组包含迁移的URL。
metaKeywordsChecker函数需要两个字符串。一个是旧的URL,另一个是更新的URL。我有一个1,700个URL对(数组#1和数组#2)的列表,我需要按顺序传入测试。
是实际使用'目标[连续]'或者比较两个数组? –