Skip to content
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

GD-155: Add more Analyzers to GdUnit4 to prevent wrong usage of the API #155

Open
MikeSchulze opened this issue Nov 8, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request gdunit4.analyzers Issue is related to the `gdunit4.analyzers`

Comments

@MikeSchulze
Copy link
Owner

Is your feature request related to a problem? Please describe.
With the new introduced, gdUnit4.analyzer we are now in position to add more compile validations.

  • add TestCase:TestName naming validation, a test case name should be unique.
    [TestCase(TestName = "A")]
    [TestCase(TestName = "A")]
    public void Example() => AssertThat(true).IsEqual(true);

Will actual fail at runtime:
image

Additional context
gdUnit4.analyzer

@MikeSchulze MikeSchulze added enhancement New feature or request gdunit4.analyzers Issue is related to the `gdunit4.analyzers` labels Nov 8, 2024
@MikeSchulze MikeSchulze self-assigned this Nov 8, 2024
@MikeSchulze MikeSchulze changed the title Add more Analyzers to GdUnit4 to prevent wrong usage of the API GD-155: Add more Analyzers to GdUnit4 to prevent wrong usage of the API Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request gdunit4.analyzers Issue is related to the `gdunit4.analyzers`
Projects
None yet
Development

No branches or pull requests

1 participant