开发者

Counterpart for NUnit attribute [SetUp()] in Visual Studio

开发者 https://www.devze.com 2022-12-29 09:53 出处:网络
I am \"translatin开发者_开发问答g\" a NUnit test to Visual Studios unit testing and I am wondering if the attribute [ClassInitialize()] in VS is equivalent to [SetUp()] in NUnit?[SetUp] corresponds to

I am "translatin开发者_开发问答g" a NUnit test to Visual Studios unit testing and I am wondering if the attribute [ClassInitialize()] in VS is equivalent to [SetUp()] in NUnit?


[SetUp] corresponds to [TestInitialize]

[TestFixtureSetUp] corresponds to [ClassInitialize]

Here's the full picture.

0

精彩评论

暂无评论...
验证码 换一张
取 消