How to access fields of a TTestCase in a TTestSetup class

后端 未结 7 1256
死守一世寂寞
死守一世寂寞 2021-02-07 13:37

I am creating unit tests with DUnit. I have a class that takes quite a long time to initialize.

I derive a class TMyTestSetup from TTestSetup and override its Setup met

7条回答
  •  失恋的感觉
    2021-02-07 14:13

    Having just one published method, which in turn call all your other test methods is the lazy but quicker way of having the Setup and TearDown procedure called only once.

提交回复
热议问题