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

Add Roslyn-based tests for factory methods writer/visitor #66

Open
zspitz opened this issue Oct 31, 2020 · 1 comment
Open

Add Roslyn-based tests for factory methods writer/visitor #66

zspitz opened this issue Oct 31, 2020 · 1 comment
Labels
tests Related to automated tests of the library
Milestone

Comments

@zspitz
Copy link
Owner

zspitz commented Oct 31, 2020

While the C# and VB writer/visitors have invalid syntactic elements, the factory methods should compile and run as-is whether the language is C# or VB.

We should create an instance of the Roslyn compiler and try to compile and run the resulting code. If it compiles and runs without error, the unit test is successful.

@zspitz zspitz added this to the 3.3 milestone Nov 10, 2020
@zspitz
Copy link
Owner Author

zspitz commented Nov 10, 2020

We could also test that the generated expression tree looks the same as the original, via one of the renderings.

@zspitz zspitz added the tests Related to automated tests of the library label Jul 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Related to automated tests of the library
Projects
None yet
Development

No branches or pull requests

1 participant