| 13 | namespace UnitTests |
| 14 | { |
| 15 | TEST_CLASS(EventProducerTest) |
| 16 | { |
| 17 | public: |
| 18 | TEST_METHOD(ConvertWstringToString) { |
| 19 | std::wstring input = L"Hello\\World"; |
| 20 | std::string reference = "Hello\\World"; |
| 21 | |
| 22 | std::string result = wstring2string(input); |
| 23 | Assert::AreEqual(reference.c_str(), result.c_str()); |
| 24 | } |
| 25 | TEST_METHOD(ConvertWstringToString2) { |
| 26 | std::wstring input = L"Hello\\\\World"; |
| 27 | std::string reference = "Hello\\\\World"; |
nothing calls this directly
no test coverage detected