xunit test, several packages need to be installed as follows:
- Microsoft.TestPlatform.TestHost
- Microsoft.NET.Test.Sdk
- xunit.runner.visualstudio
- xunit
1 and 2 will not install can not find testhost, do not install third problem can occur tests did not find.
Further, the test should be placed in a special class of test items, rub together can cause problems with a plurality of entry points (main function).