Replace [MemberData] with [MethodDataSource]

Proprietary

Replace the xUnit [MemberData] attribute with the TUnit [MethodDataSource] attribute. Fields and properties referenced by MemberData are converted to methods.

OpenRewrite.Recipes.CSharp.Migration.TUnit.FromXUnit.MemberDataToMethodDataSource
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.TUnit.FromXUnit.MemberDataToMethodDataSource

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.