Friday, May 27, 2022

(Solved) XUnit Test not getting discovered in Visual Studio Test Explorer

Make sure you have all the below NuGet packages added in your test project. So that all test methods will be displayed in Test Explorer window.

  • xunit
  • xunit.runner.visualstudio
  • Microsoft.NET.Test.Sdk