diff options
author | Gennadiy Civil <misterg@google.com> | 2018-06-11 15:49:02 (GMT) |
---|---|---|
committer | Gennadiy Civil <misterg@google.com> | 2018-06-11 15:49:02 (GMT) |
commit | 4490be87897d598a403bb4a115a3a0fd79a37ca3 (patch) | |
tree | 774ccad45392b02bde1ed26b5e148bc14b9abb15 /googletest/docs/primer.md | |
parent | f213b6399e03a2d07da6a6984fa157e17cafd474 (diff) | |
download | googletest-4490be87897d598a403bb4a115a3a0fd79a37ca3.zip googletest-4490be87897d598a403bb4a115a3a0fd79a37ca3.tar.gz googletest-4490be87897d598a403bb4a115a3a0fd79a37ca3.tar.bz2 |
Rename FAQ.md to faq.md and adjust the links.
Part of documentation rationalization
Diffstat (limited to 'googletest/docs/primer.md')
-rw-r--r-- | googletest/docs/primer.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/googletest/docs/primer.md b/googletest/docs/primer.md index 561ad02..48ce894 100644 --- a/googletest/docs/primer.md +++ b/googletest/docs/primer.md @@ -290,7 +290,7 @@ To create a fixture, just: 1. Derive a class from `::testing::Test` . Start its body with `protected:` or `public:` as we'll want to access fixture members from sub-classes. 1. Inside the class, declare any objects you plan to use. 1. If necessary, write a default constructor or `SetUp()` function to prepare the objects for each test. A common mistake is to spell `SetUp()` as `Setup()` with a small `u` - don't let that happen to you. - 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 entry](FAQ.md#should-i-use-the-constructordestructor-of-the-test-fixture-or-the-set-uptear-down-function). + 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 entry](faq.md#should-i-use-the-constructordestructor-of-the-test-fixture-or-the-set-uptear-down-function). 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 |