Skip to content

Commit

Permalink
Update testcase of WinAPIException
Browse files Browse the repository at this point in the history
  • Loading branch information
YaSuenag committed Sep 28, 2024
1 parent 70e98eb commit bbbb09d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SimpleComTest/WinAPIExceptionTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ namespace SimpleComTest
TEST_METHOD(MessageTest)
{
SimpleCom::WinAPIException e(TEST_ERRCODE);
Assert::AreEqual(expected, e.GetErrorText().c_str());
Assert::IsTrue(e.GetErrorText().find(expected) != TString::npos);
Assert::IsTrue(e.GetErrorText().find(_T("(0x2)")) != TString::npos); // ERROR_FILE_NOT_FOUND in hex
}

};
Expand Down

0 comments on commit bbbb09d

Please sign in to comment.