|
|
|
@ -317,7 +317,7 @@ To create a fixture: |
|
|
|
|
1. If necessary, write a destructor or `TearDown()` function to release any |
|
|
|
|
resources you allocated in `SetUp()` . To learn when you should use the |
|
|
|
|
constructor/destructor and when you should use `SetUp()/TearDown()`, read |
|
|
|
|
this [FAQ](faq.md#should-i-use-the-constructordestructor-of-the-test-fixture-or-the-set-uptear-down-function) entry. |
|
|
|
|
this [FAQ](faq.md#should-i-use-the-constructordestructor-of-the-test-fixture-or-setupteardown) entry. |
|
|
|
|
1. If needed, define subroutines for your tests to share. |
|
|
|
|
|
|
|
|
|
When using a fixture, use `TEST_F()` instead of `TEST()` as it allows you to |
|
|
|
|