开发者

what is the equivalent test attribute for TestFixtureSetUp of Nunit in MSTest

In NUnit we use TestFixtureSetUp what is the equivalent test i开发者_运维技巧n MSTest?

Thanks


here you can find good table which shows NUnit and MSTest attributes side by side:

https://www.lambdatest.com/blog/nunit-vs-xunit-vs-mstest/

for your answer it's ClassInitialize attribute


You're looking for the [ClassInitialize] attribute:

[ClassInitialize]
public static void Initialize(TestContext testContext) { ... } 
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜