Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
到目前为止,SetUp 属性指定 setup 方法应该在每个测试方法之前运行一次,是否有一个属性可以指定 setup 方法应该对所有测试方法只运行一次?
我不确定,是否应该使用这样的东西。 但FixtureSetupAttribute接近你正在寻找的东西。
FixtureSetupAttribute