1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- #include "sample4.h"
- #include "gtest/gtest.h"
- namespace {
- TEST(Counter, Increment) {
- Counter c;
-
- EXPECT_EQ(0, c.Decrement());
-
-
- EXPECT_EQ(0, c.Increment());
- EXPECT_EQ(1, c.Increment());
- EXPECT_EQ(2, c.Increment());
- EXPECT_EQ(3, c.Decrement());
- }
- }
|