I have an F# Class Library with the "xUnit.net" and "xUnit.net Runners" packages installed using NuGet. I have the following code:
module XUnitTest
open Xunit
[<Fact>]
let Test () =
do Assert.True (1 = 2)
()
When I run the xUnit GUI (xunit.gui.clr4.exe, which NuGet adds to (projectdirectory)packagesxunit.runners.1.9.1ools), and load the assembly built by this project, the Test () method appears, and fails when I run it, as expected.
However, I cannot get the test to appear in VS 2012's Test Explorer, no matter how many times I rebuild, restart, etc. If I click Run All, the build output window pops up but nothing else happens.
For the heck of it I also installed the xUnit.net Extensions, though I don't believe they're necessary for what I'm trying to do. That didn't help either.
Please let me know if I can provide additional information and thank you for reading!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…