开发者

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

开发者 https://www.devze.com 2023-02-19 13:18 出处:网络
In NUnit we use TestFixtureSetUp what is the equivalent test i开发者_运维技巧n MSTest? Thankshere you can find good table which shows NUnit and MSTest attributes side by side:

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

精彩评论

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