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) { ... }
精彩评论