Looks like the generated code for XUnitWrapperGenerator for handling Theory dynamic member data is broken.
In #126366, we encountered this error after merging and reverted the PR:
error CS0103: The name 'testArguments' does not exist in the current context
Originally posted by @jkoritzinsky in #126366 (comment)