An attribute adds a declaration that a tool can recognize. In F# tests, `[<Fact>]` marks a function for XUnit’s test runner to discover. This avoids manually gathering tests into a list, as you would with Expecto. section 14.4
[<Fact>]
let ``My guitar gently weeps`` () =
let input = Guitar
let output = play input
Assert.Equal("Wah wah", output)
[<Fact>]
let ``Drums go bang`` () =
let input = Drums
let output = play input
Assert.Equal ("Ba dumm tss", output)
Each `[<Fact>]` sits immediately above a test function. The functions call `play` and check its output with `Assert.Equal`. section 14.4
Attributes can also identify shared test setup: `[<TestSetup>]` marks a setup function. Use the attribute expected by your test framework; discovery and execution then depend on that framework’s runner. An XUnit class-library project can be created with `dotnet new xunit -lang F#` and run with `dotnet test`. section 14.4



























