8000 Unnecessary quotes in TypeSelectorAssertions · Issue #199 · AwesomeAssertions/AwesomeAssertions · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Unnecessary quotes in TypeSelectorAssertions #199
Closed
@cbersch

Description

@cbersch

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0