Experimental WinUI Unit test projects (with known issues).
For a list of current limitations/known issues, visit: https://github.com/chingucoding/winui-unittest-templates
This extension contains unofficial unit test templates for WinUI 3 desktop to make testing WinUI 3 assemblies easier.
Due to the experimental state of unit testing WinUI 3 with Visual Studio, there are limitations and known issues:
Debugger does not work with VS 2022
Test runs may occasionally fail with an error of "The active test run was aborted. Reason: Unable to communicate with test host process."
Rebuilding the project or reopening the solution will often fixes this issue.
Debugger with VS 2019 does not register correctly that test run has completed; VS stays in debugging mode.
VS Test discovery "leaks" two window when running tests, i.e. the templates that host UI will leave a window open when started through the test runner and running the tests will also leave the app open.
This list may not exhaustive, if you find more issues/bugs, feel free to create an issue/PR on the extensions GitHub repository