You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Obsolete TestMethodIdentifierProperty constructor and add new constructor with arity parameter #5516
This doesn't have a good place to specify arity. I suggest obsoleting the current constructor (but keeping it for binary compatibility), and add another constructor with int arity parameter.
We don't have this information in our metadata, since we don't permit overloaded test methods. If this is going to become a hard requirement we'll need to make a breaking change to store it.
Brad Wilson (@bradwilson) It probably won't impact you that much if you just pass 0, but any custom extension that will attempt to read TestMethodIdentifierProperty.MethodArity may not work as expected (No extension that I know of will want to read that today). It's best if the contract of the public API isn't violated though.
Activity
Youssef1313 commentedon Apr 28, 2025
FYI Brad Wilson (@bradwilson) Tom Longhurst (@thomhurst)
bradwilson commentedon Apr 28, 2025
We don't have this information in our metadata, since we don't permit overloaded test methods. If this is going to become a hard requirement we'll need to make a breaking change to store it.
Youssef1313 commentedon Apr 28, 2025
Brad Wilson (@bradwilson) It probably won't impact you that much if you just pass 0, but any custom extension that will attempt to read
TestMethodIdentifierProperty.MethodAritymay not work as expected (No extension that I know of will want to read that today). It's best if the contract of the public API isn't violated though.microsoft/testfx#5516: Add method arity for TestMethodIdentifierProperty
bradwilson commentedon May 25, 2025
Available in xUnit.net v3
3.0.0-pre.4https://xunit.net/docs/using-ci-buildsYoussef1313 commentedon May 25, 2025
Brad Wilson (@bradwilson) I left this comment xunit/xunit@76cae7a#r157969047, in case you found the upgrade to 1.7.0 breaking source info in VS.
microsoft/testfx#5516: Add method arity for TestMethodIdentifierProperty
microsoft/testfx#5516: Add method arity for TestMethodIdentifierProperty
microsoft/testfx#5516: Add method arity for TestMethodIdentifierProperty
microsoft/testfx#5516: Add method arity for TestMethodIdentifierProperty