I have a unit test method which tests a controller action method. The action method uses resource file to get a static message.
message = Resources.MyResource.MemberNotVerified;
However at this line the exception thrown is :-
"Could not load file or assembly 'App_GlobalResources' or one of its dependencies. The system cannot find the file specified.":"App_GlobalResources" System.IO.IOException {System.IO.FileNotFoundException}
I tried coping the whole resource file in my Test project, but it was unsuccessful.
Any idea friends.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…