Open Bartleby2718 opened 1 month ago
To call never asked for functionality a bug is a bit steep isn't it.
Well, the description for NUnit2014 is "Use SomeItemsConstraint for better assertion messages in case of failure" as opposed to "Use ContainConstraint for better assertion messages in case of failure." 🤷
I can change the wording if you believe this should not be part of NUnit2014 .
If you are going to quote documentation, then be complete:
Using `Does.Contain` (or `Does.Not.Contain`) constraint will lead to better assertion messages in case of failure,
so this analyzer marks all usages of string `Contains` method where it is possible to replace
with `Does.Contain` constraint.
Nothing in here about Any
or Matches
Very similar to #748, but for
.Any()
. NUnit.Analyzers should be able to convertto
but it doesn't.