123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- #include "gtest/gtest.h"
- #include "test/production.h"
- TEST(PrivateCodeTest, CanAccessPrivateMembers) {
- PrivateCode a;
- EXPECT_EQ(0, a.x_);
- a.set_x(1);
- EXPECT_EQ(1, a.x_);
- }
- typedef testing::Test PrivateCodeFixtureTest;
- TEST_F(PrivateCodeFixtureTest, CanAccessPrivateMembers) {
- PrivateCode a;
- EXPECT_EQ(0, a.x_);
- a.set_x(2);
- EXPECT_EQ(2, a.x_);
- }
|