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
Relates to #475 where the detected code was actual == expected.
However NUnit2010 is also raised for actual.Equals(expected)
This was addressed partly in #477 but only if the argument was a ref readonly struct not if the instance was one.
Here the method ReadOnlySpan<char>.Equals(string) is called.
The CodeFix converts this into: Assert.That(actual, Is.EqualTo(expected));
which raises: error CS0306: The type 'ReadOnlySpan<char>' may not be used as a type argument
The text was updated successfully, but these errors were encountered:
Relates to #475 where the detected code was
actual == expected
.However NUnit2010 is also raised for
actual.Equals(expected)
This was addressed partly in #477 but only if the argument was a
ref readonly struct
not if the instance was one.Here the method
ReadOnlySpan<char>.Equals(string)
is called.The CodeFix converts this into:
Assert.That(actual, Is.EqualTo(expected));
which raises:
error CS0306: The type 'ReadOnlySpan<char>' may not be used as a type argument
The text was updated successfully, but these errors were encountered: