LANGUAGE

xUnit Fact

Marks an xUnit test method without theory data rows. Requires xUnit test project.

Formal Syntax & Structure

csharp syntaxcsharp
[Fact] public void Fee_BelowThreshold_ReturnsFive() { /* test */ }

Working Example

Example Snippetcsharp
// Documentary fragment; see linked lesson for context.[Fact] public void Fee_BelowThreshold_ReturnsFive() { /* test */ }
C# & .NET Reference