-
Notifications
You must be signed in to change notification settings - Fork 284
Deprecates That
property and suggest Instance
instead
#5811
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
Deprecates That
property and suggest Instance
instead
#5811
Conversation
# Conflicts: # src/TestFramework/TestFramework/PublicAPI/PublicAPI.Unshipped.txt
I'm not happy with that change. You can already do |
@cagrin your syntax is a little bit different Looking up to GitHub repos using MSTest How many instances does this change impact on your codebase? |
Yes, I agree, the name That will be best for this type of assertion extension. I'm waiting for new methods. I'll try to adapt my extensions to the new Instance name or find another convinient way. |
Seconding what @mdrexel just wrote here. We have tens of thousands of uses of the |
Thanks for the feedback @cagrin, @mdrexel, and @orbitalbits. I reverted for now in #6323, and will be experimenting with having both the |
@Youssef1313 thank you, we appreciate it. |
Great call @Youssef1313 and thanks everyone for the feedback! If extension methods aren't working we can go back to a different naming like Assert.Subject, Assert.ThatSubject, Assert.Expression ... |
Either a different name, or with "extension members" (C# 14). Hopefully, VB/F# might follow-up and support it as well? |
This moves will allows to introduce the following fluent
Assert.That(x).IsYYY
pattern