MsTest - executing method before each test in an assembly

后端 未结 5 1478
青春惊慌失措
青春惊慌失措 2021-02-06 21:45

Is it possible to run specific method before each test in an assembly?

I know about TestInitialize attribute but this attribute has \"class scope\". If it\'

5条回答
  •  遥遥无期
    2021-02-06 22:32

    You want to use [AssemblyInitialize].

    See: MSDN Link

    or this question: on stackoverflow

提交回复
热议问题