在Visual Studio中对应NUnit属性[SetUp()]

时间:2010-05-05 09:02:55

标签: .net visual-studio visual-studio-2008 unit-testing nunit

我正在将NUnit测试“翻译”为Visual Studios单元测试,我想知道VS中的属性[ClassInitialize()]是否等同于NUnit中的[SetUp()]

1 个答案:

答案 0 :(得分:11)

[SetUp]对应[TestInitialize]

[TestFixtureSetUp]对应[ClassInitialize]

Here's the full picture