MCPcopy Create free account
hub / github.com/derceg/explorerplusplus / TestGetFileProductVersion

Function TestGetFileProductVersion

Explorer++/TestHelper/TestHelper.cpp:11–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include "Helper.h"
10
11void 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
24TEST(GetFileProductVersion, Catalan)
25{

Callers 1

TESTFunction · 0.85

Calls 2

GetTestResourceFilePathFunction · 0.85
GetFileProductVersionFunction · 0.85

Tested by

no test coverage detected