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

TestGenerator should log warnings when the same class is tested #148

Open
Keboo opened this issue Jun 13, 2022 · 0 comments
Open

TestGenerator should log warnings when the same class is tested #148

Keboo opened this issue Jun 13, 2022 · 0 comments

Comments

@Keboo
Copy link
Collaborator

Keboo commented Jun 13, 2022

Reproduction steps:
Put the ConstructorTestsAttribute on top of two test classes and set the same target type for both of the attributes.

Observed:
The output window properly shows an error that the generator produced duplicate files with the same name.

Expected:
There are two things that should be fixed.
First, we should handle two target classes that are in different namespaces but have the same class name. This should be fixed by making the output file names unique.
Second, we should log a warning if the ConstructorTestsAttribute is declared twice for the same target type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant