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

I am "translating" the NUnit test to Visual Studios unit testing, and I wonder if the attribute [ClassInitialize()]in VS matches the equivalent [SetUp()]in NUnit?

+5
source share
1 answer

[SetUp] corresponds to [TestInitialize]

[TestFixtureSetUp] corresponds to [ClassInitialize]

Here is the full image .

+11
source

All Articles