Skip to content
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

[UITestMethod] should invoke test method with null #1045

Merged
merged 1 commit into from
Feb 23, 2022

Conversation

nandin-borjigin
Copy link

@nandin-borjigin nandin-borjigin commented Feb 17, 2022

What

Changed the argument of ITestMethod invocation call in UITestMethod from an empty array to null.

Why

DataRowAttribute and other data driven testing depends on the argument being null to inject the parameters from data source or data row. Sending an empty array into ITestMethod.Invoke breaks this mechanism.

There is no existing test for these two attributes, thus not tests are updated.

@Haplois Haplois merged commit e05546c into microsoft:main Feb 23, 2022
@nandin-borjigin nandin-borjigin deleted the fix-UITestMethodAttribute branch March 8, 2022 07:46
cvpoienaru pushed a commit to cvpoienaru/testfx that referenced this pull request Apr 4, 2022
nohwnd pushed a commit that referenced this pull request Apr 7, 2022
) (#1061)

Co-authored-by: Nandin Borjigin <nandiin@163.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants