| Index: test/Util_Test.cpp |
| =================================================================== |
| --- a/test/Util_Test.cpp |
| +++ b/test/Util_Test.cpp |
| @@ -1,6 +1,7 @@ |
| #include <gtest/gtest.h> |
| #include "../src/plugin/PluginUtil.h" |
| #include "../src/plugin/PluginDebug.h" |
| +#include "../src/shared/Utils.h" |
| class Util_Test |
| : public ::testing::Test |
| @@ -618,3 +619,26 @@ |
| truncate_test( length_one_hundred_and_one, truncated ); |
| } |
| +//========================================================================================= |
| +// shared/Utils.cpp |
| +//========================================================================================= |
| + |
| +//---------------------------------- |
| +// IE Version |
| +//---------------------------------- |
| + |
| +TEST( Shared_Util_Test, IE_version_0 ) |
| +{ |
| + std::wstring version = ABP::IE::installed_version_string(); |
| + ASSERT_NE( version, L"" ); |
| + // Replace with local version prefix as appropriate |
| + //EXPECT_TRUE( ABP::util::begins_with( version, L"11." ) ); |
| +} |
| + |
| +TEST( Shared_Util_Test, IE_version_1 ) |
| +{ |
| + int version = ABP::IE::installed_major_version(); |
| + ASSERT_NE( version, 0 ); |
| + // Replace with local major version |
| + //EXPECT_EQ( version, 11 ); |
| +} |