Closed
Description
Description
The error messages of TypeSelectorAssertions
contain unnecessary quotes.
Reproduction Steps
public sealed class MyClass;
[Fact]
public void Test()
{
// Arrange
var types = new TypeSelector(
[
typeof(MyClass),
]);
// Act
types.Should().BeDecoratedWith<SuppressMessageAttribute>();
}
Expected behavior
This should fail with error message (no quotes around MyClass
).
Expected all types to be decorated with <namespace>.SuppressMessageAttribute, but the attribute was not found on the following types:
MyClass.
Actual behavior
Expected all types to be decorated with <namespace>.SuppressMessageAttribute, but the attribute was not found on the following types:
"MyClass".
This has wrong quote around MyClass
Regression?
No, this is already quite old (> 4 years)
Known Workarounds
No response
Configuration
No response
Other information
No response
Are you willing to help with a pull-request?
Yes, please assign this issue to me.