| 383 | } |
| 384 | |
| 385 | void NUnitTest::TTestBase::AfterTest() { |
| 386 | TearDown(); |
| 387 | |
| 388 | TVector<std::function<void()>> afterTestFunctions; |
| 389 | with_lock (AfterTestFunctionsLock_) { |
| 390 | afterTestFunctions.swap(AfterTestFunctions_); |
| 391 | } |
| 392 | |
| 393 | for (auto i = afterTestFunctions.rbegin(); i != afterTestFunctions.rend(); ++i) { |
| 394 | std::function<void()>& f = *i; |
| 395 | if (f) { |
| 396 | f(); |
| 397 | } |
| 398 | } |
| 399 | } |
| 400 | |
| 401 | bool NUnitTest::TTestBase::GetIsForked() const { |
| 402 | return Processor()->GetIsForked(); |