I have Xunit and Xunit(Runner: Visual Studio) installed and he is my simple test:
namespace Testing
module Tests =
open Xunit
open Xunit.Extensions
[<Fact>]
let ``just test`` =
Assert.Equal(1, 1)
()
But I can find Xunit in Test -> Window -> Test explorer and Resharper Unit Tests Window.
It looks like your test is missing the unit type , ()
, to identify it as a function taking no arguments. If you write your test like this it should show up in the Visual Studio Test Explorer.
[<Fact>]
let ``just test`` () =
Assert.Equal(1, 1)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.