Skip to content

Commit 80aec3a

Browse files
author
Dan Smith
committed
toWstring() -> details::to_wstring()
1 parent 035bfb3 commit 80aec3a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

UnitTest/CppUnitTestAssert.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ void test::Assert::FailOnCondition(bool condition, const unsigned short* message
3737
std::wstring GetAssertMessage(bool equality, const std::wstring& expected, const std::wstring& actual, const wchar_t *message); // declare caller
3838
std::wstring test::Assert::GetAssertMessage(bool equality, const std::string& expected, const std::string& actual, const wchar_t *message)
3939
{
40-
return ::GetAssertMessage(equality, str::toWString(expected), str::toWString(actual), message); // and call!
40+
return ::GetAssertMessage(equality, str::details::to_wstring(expected), str::details::to_wstring(actual), message); // and call!
4141
}

UnitTest/TestCase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ inline void assert_almost_eq(const std::string& testName, long double X1, long d
8989
#define TEST_ASSERT_EQ_MSG(msg, X1, X2) testName, Microsoft::VisualStudio::CppUnitTestFramework::Logger::WriteMessage(msg.c_str()); TEST_ASSERT_EQ(X1, X2)
9090

9191
#undef TEST_FAIL
92-
#define TEST_FAIL(msg) { (void)testName; const auto vw(str::toWString(msg)); Microsoft::VisualStudio::CppUnitTestFramework::Assert::Fail(vw.c_str()); }
92+
#define TEST_FAIL(msg) { (void)testName; const auto vw(str::details::to_wstring(msg)); Microsoft::VisualStudio::CppUnitTestFramework::Assert::Fail(vw.c_str()); }
9393

9494
#undef TEST_EXCEPTION
9595
#undef TEST_THROWS

0 commit comments

Comments
 (0)