Google C++ Testing Framework
어떻게 했었더라…? 옛날에 해서 기억이 안 나니, 다음에 정리.
#include <gtest.h> TEST(MyTest, TestCase1) { EXPECT_STREQ(_T("hello"), _T("world")) } TEST(MyTest, TestCase2) { EXPECT_STREQ(_T("hello"), _T("hello")) } int _tmain(int argc, TCHAR** argv) { int result = EXIT_SUCCESS; testing::InitGoogleTest(&argc, argv); result = RUN_ALL_TESTS(); return result; }