- 
                Notifications
    You must be signed in to change notification settings 
- Fork 288
Adding appropriate error message for TestMethods expecting parameters but parameters not provided #457
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
Conversation
| <data name="TestAssembly_AssemblyDiscoveryFailure" xml:space="preserve"> | ||
| <value>Failed to discover tests from assembly {0}. Reason:{1}</value> | ||
| </data> | ||
| <data name="UTA_TestMethodExpectedParameters" xml:space="preserve"> | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Xlf file changes?
@pvlakshm Please review the string
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
| { | ||
| if (methodInfo.GetParameters() != null && parameters == null) | ||
| { | ||
| string errorMessage = string.Format( | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ResourceManager takes care of culture, do we need this formating?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Validated on a DEU machine. ResourceManager working expectedly. 👍
| /// </param> | ||
| internal static void InvokeAsSynchronousTask(this MethodInfo methodInfo, object classInstance, params object[] parameters) | ||
| { | ||
| if (methodInfo.GetParameters() != null && parameters == null) | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please explain the parameters null check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added comments.
| @dotnet-bot Test Windows / Debug Build please | 
#199