MCPcopy Create free account
hub / github.com/dobin/RedEdr / TEST_CLASS

Function TEST_CLASS

UnitTests/UnitTestEventProducer.cpp:15–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13namespace 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";

Callers

nothing calls this directly

Calls 1

wstring2stringFunction · 0.85

Tested by

no test coverage detected