| 9 | #include "Helper.h" |
| 10 | |
| 11 | void TestGetFileProductVersion(const TCHAR *szFile, DWORD dwExpectedLS, DWORD dwExpectedMS) |
| 12 | { |
| 13 | TCHAR szDLL[MAX_PATH]; |
| 14 | GetTestResourceFilePath(szFile, szDLL, SIZEOF_ARRAY(szDLL)); |
| 15 | |
| 16 | DWORD dwProductVersionLS; |
| 17 | DWORD dwProductVersionMS; |
| 18 | BOOL bRet = GetFileProductVersion(szDLL, &dwProductVersionLS, &dwProductVersionMS); |
| 19 | ASSERT_EQ(TRUE, bRet); |
| 20 | EXPECT_EQ(dwExpectedLS, dwProductVersionLS); |
| 21 | EXPECT_EQ(dwExpectedMS, dwProductVersionMS); |
| 22 | } |
| 23 | |
| 24 | TEST(GetFileProductVersion, Catalan) |
| 25 | { |
no test coverage detected