Skip to main content
Back to registry

csharp-tunit

github/awesome-copilot

Your goal is to help me write effective unit tests with TUnit, covering both standard and data-driven testing approaches.

Installs6
Install command
npx skills add https://github.com/github/awesome-copilot --skill csharp-tunit
Security audits
Gen Agent Trust HubPASS
SocketPASS
SnykPASS
About this skill
Your goal is to help me write effective unit tests with TUnit, covering both standard and data-driven testing approaches. Why TUnit over xUnit? TUnit offers a modern, fast, and flexible testing experience with advanced features not present in xUnit, such as asynchronous assertions, more refined lifecycle hooks, and improved data-driven testing capabilities. TUnit's fluent assertions provide clearer and more expressive test validation, making it especially suitable for complex .NET projects. - Use a separate test project with naming convention [ProjectName].Tests - Reference TUnit package and TUnit.Assertions for fluent assertions - Create test classes that match the classes being tested (e.g., CalculatorTests for Calculator ) - Use .NET SDK test commands: dotnet test for running tests - TUnit requires .NET 8.0 or higher - No test class attributes required (like xUnit/NUnit) - Use [Test] attribute for test methods (not [Fact] like xUnit) - Follow the Arrange-Act-Assert (AAA) pattern - Name tests using the pattern MethodName_Scenario_ExpectedBehavior - Use lifecycle hooks: [Before(Test)] for setup and [After(Test)] for teardown - Use [Before(Class)] and [After(Class)] for shared context between tests in a class - Use [Before(Assembly)] and [After(Assembly)] for shared context across test classes - TUnit supports advanced lifecycle hooks like [Before(TestSession)] and...

Source description provided by the upstream skill listing. Community reviews and install context appear in the sections below.

Community Reviews

Latest reviews

Sign in to review

No community reviews yet. Be the first to review.

Browse this skill in context
FAQ
What does csharp-tunit do?

Your goal is to help me write effective unit tests with TUnit, covering both standard and data-driven testing approaches.

Is csharp-tunit good?

csharp-tunit does not have approved reviews yet, so SkillJury cannot publish a community verdict.

What agent does csharp-tunit work with?

csharp-tunit currently lists compatibility with Agent compatibility has not been published yet..

What are alternatives to csharp-tunit?

Skills in the same category include telegram-bot-builder, flutter-app-size, sharp-edges, iterative-retrieval.

How do I install csharp-tunit?

npx skills add https://github.com/github/awesome-copilot --skill csharp-tunit

Related skills

More from github/awesome-copilot

Related skills

Alternatives in Software Engineering