-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VerifyLog() doesn't work when message comes from Resource file. #14
Comments
I succeed doing something as follow, but it's not convenient. // In TEST
_mockLogger.VerifyLog(l => l.LogWarning(It.Is<string>(msg => TestString(msg, assessmentDetailId)), assessmentDetailId), Times.Exactly(1));
// Helper
private static bool TestString(string mess, int assessmentDetailId)
{
return mess == CoreResource.LOG_CouldNotDeserializeInputDataForAssessmentDetailId.PatternReplace(new() { { "Id", assessmentDetailId.ToString() } });
} |
Could you post the value of |
I can confirm this is an issue with the following test. I will see what I can do
With the following failure
|
It's a standard string resource from a .RESX File |
This doesn't work.
Any idea ?
message :
Could not deserialize input data for assessmentDetailId {Id}
In SUT
In TEST
The text was updated successfully, but these errors were encountered: