In NUnit we use TestFixtureSetUp
what is the equivalent test in MSTest?
Thanks
In NUnit we use TestFixtureSetUp
what is the equivalent test in 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) { ... }