Unit tests: Prefer constructor to SetUp() in fixtures.

This commit is contained in:
Peter Johnson
2015-07-19 16:30:04 -07:00
parent 1cc148848b
commit cf18355fe2
2 changed files with 2 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ namespace nt {
class WireEncoderTest : public ::testing::Test {
protected:
virtual void SetUp() {
WireEncoderTest() {
v_empty = std::make_shared<Value>();
v_boolean = Value::MakeBoolean(true);
v_double = Value::MakeDouble(1.0);