1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #include "production.h"
- #include "gtest/gtest.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_);
- }
|