I
I
IndependenceLetter2020-01-24 19:00:19
C++ / C#
IndependenceLetter, 2020-01-24 19:00:19

Difference between TestInitialize and ClassInitialize in MSTestv2?

I'm watching itvdn - unit testing, which is built on MSTest and I can't understand ClassInitialize. TestInitialize - as I understand it, the method marked by it is triggered before each unit test (that is, if an object is created in my code block marked TestInitialize, it is logical => every time the object will be recreated).
But I don’t understand how the work with ClassInitialize and AssemblyInitialize happens.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question