| 27 | TEST_METHOD_CLEANUP(Finalize) {} |
| 28 | |
| 29 | TEST_METHOD(RunningCodeBasicTest) |
| 30 | { |
| 31 | Log::Info("Entering RunningCode basic test"); |
| 32 | |
| 33 | RunningCode rc; |
| 34 | |
| 35 | Assert::IsTrue(SUCCEEDED(rc.EnumRunningCode())); |
| 36 | |
| 37 | Modules mods; |
| 38 | Assert::IsTrue(SUCCEEDED(rc.GetUniqueModules(mods))); |
| 39 | |
| 40 | for (const auto& mod : mods) |
| 41 | { |
| 42 | Log::Info(L"Module '{}' in process", mod.strModule); |
| 43 | |
| 44 | std::wstringstream stream; |
| 45 | |
| 46 | for (const auto pid : mod.Pids) |
| 47 | { |
| 48 | stream << pid << L" "; |
| 49 | } |
| 50 | Log::Info(L"\t{}", stream.str()); |
| 51 | } |
| 52 | } |
| 53 | }; |
| 54 | } // namespace Orc::Test |
nothing calls this directly
no test coverage detected