Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>XUnit SnippetsNew to Visual Studio Code? Get it now.
XUnit Snippets

XUnit Snippets

Spencer Farley

|
12,403 installs
| (0) | Free
Snippet support for common xunit code (facts, theory, test class, theory data,...)
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

XUnit Snippets

Snippet support for common XUnit code (facts, test class,...)

Features

Fact animation

Supported languages: C#, (F# planned)

Supported snippets include

  • xclass: Test class
  • xfact: Fact test method
  • xtheory: Theory test method
  • xdatafield: TheoryData as a field
  • xdatam: TheoryData from a method

In general, the snippets will tab through (in order)

  • Type definitions
  • Class/Method names
  • End with the cursor where you write code
    • If there is default code, it will be replaced when you start typing

Release Notes

1.0.0

Initial release with basic snippets for C# (fact, theory, test class, test data)


  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft