Modify example in the primer to match Testing FAQ.
commit5197b1a8e6a1ef9f214f4aa537b0be17cbf91946
authorKrzysztof Kosiński <krzysio@google.com>
Fri, 12 Apr 2024 20:18:22 +0000 (12 13:18 -0700)
committerCopybara-Service <copybara-worker@google.com>
Fri, 12 Apr 2024 20:19:21 +0000 (12 13:19 -0700)
tree0b0ee9b4be902c9fe2143958afbe060f9c351cde
parentb1a777f31913f8a047f43b2a5f823e736e7f5082
Modify example in the primer to match Testing FAQ.

The CtorVsSetUp section of the FAQ says that constructors and destructors should be preferred over SetUp() and TearDown(), because they will automatically chain up to the fixture's base class, whereas for methods the user must remember to add the chaining manually.

PiperOrigin-RevId: 624273474
Change-Id: Ida41aae193d417eaf996587c7ae1a0099a8cab32
docs/primer.md