Xunit test does not run

Viewed 1574

I saw Xunit Unit Tests will not run that seems specific to VS 2017. I am having the same problem with VS 2019. I can try to run the test via the Test Explorer or run the tests by right clicking on the test. Either way the test never runs. I have tried Debug an setting a breakpoint at the first line of the test. The breakpoint never gets hit. Similaryly I have tried debugging the test from the Test Explorer. Even if I bypass debug and just run the test the result always shows as "Not Run". I am not sure why the test will not run. None of the steps for VS 2017 seem to make a difference for VS 2019. How can I get my test to run?

1 Answers

If you are compiling x64 there is an option to run tests with a specific platform in the test menu. Change selection from x86 to x64.

Related