Synaptic SkillsSynapticSkills
MarketplaceSkill GraphCriar SkillMCP ServerPlataformaEnterprise
v0.1.0-beta
Voltar ao Marketplace
DevelopmentMédio

XUnit Best Practices

porgithub·github· v1.0.0 · atualizado em 2026-04-10
83
Score

Get best practices for XUnit unit testing, including data-driven tests

csharpxunitunit-testingtesting-frameworkdata-driven-teststest-automationdotnet-testing
0Stars
0Forks
0Usos
Fork

Documento do Skill

SKILL.mdcsharp-xunit/workflow
1. Set up a separate test project with the naming convention `[ProjectName].Tests`.
2. Reference the necessary NuGet packages: `Microsoft.NET.Test.Sdk`, `xunit`, and `xunit.runner.visualstudio`.
3. Create test classes that correspond to the classes being tested.
4. Implement standard tests using the `[Fact]` attribute and the Arrange-Act-Assert (AAA) pattern.
5. Implement data-driven tests using `[Theory]` and data source attributes like `[InlineData]`, `[MemberData]`, or `[ClassData]`.
6. Use appropriate assertions to verify the expected behavior.
7. Organize tests by feature or component and use traits for categorization.
8. Run tests using the `dotnet test` command.

Telemetria de Agentes

Execuções
0
total
Taxa de Sucesso
0%
últimos 30d
Latência Média
0.0s
p50
Alucinação
0.0%
detecção
Tokens Entrada
0
avg 0/exec
Tokens Saída
0
avg 0/exec

Uso por Plataforma

Skills Relacionados

Compõe comNUnit Best Practices
70%
Hebbian Synapse
Composite0.700
w = 0.3·α + 0.5·β + 0.2·γ
80
Compõe com ←MSTest Best Practices (MSTest 3.x/4.x)
80%
Hebbian Synapse
Composite0.800
w = 0.3·α + 0.5·β + 0.2·γ
79
Compõe com ←NUnit Best Practices
80%
Hebbian Synapse
Composite0.800
w = 0.3·α + 0.5·β + 0.2·γ
80
Compõe com ←TUnit Best Practices
80%
Hebbian Synapse
Composite0.800
w = 0.3·α + 0.5·β + 0.2·γ
82
Similar aAPI Test Generator
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
88
Similar aTest Data Generator
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
83
Similar aASP.NET Minimal API with OpenAPI
40%
Hebbian Synapse
Composite0.400
w = 0.3·α + 0.5·β + 0.2·γ
79
Co-executedTest Data Generator
47%
Hebbian Synapse
Composite0.471
w = 0.3·α + 0.5·β + 0.2·γ
83
Co-executed ←MSTest Best Practices (MSTest 3.x/4.x)
50%
Hebbian Synapse
Composite0.504
w = 0.3·α + 0.5·β + 0.2·γ
79
Co-executed ←NUnit Best Practices
50%
Hebbian Synapse
Composite0.496
w = 0.3·α + 0.5·β + 0.2·γ
80
Co-executed ←TUnit Best Practices
50%
Hebbian Synapse
Composite0.501
w = 0.3·α + 0.5·β + 0.2·γ
82

Árvore do Skill

XUnit Best Practices
csharp-xunit
Fases Cognitivas6
1.SENSE
2.CONTEXTUALIZE
3.HYPOTHESIZE
4.RECOMMEND
5.ACT
6.REFLECT
Triggers8
write XUnit testsbest practices for XUnitcreate data-driven tests in XUnithow to use XUnitXUnit testing guideimplement unit tests with XUnitXUnit test structureuse assertions in XUnit

Avaliar este Skill

Score Breakdown

⭐Avaliação Humana0%
🤖Sucesso de Agentes0%
🕐Atualidade100%
🔗Saúde de Dependências100%
🕸️Centralidade no Grafo0%
🛡️Segurança48%
CompositeScore = α·Humano + β·Agente + γ·Recência + δ·Deps + ε·Centralidade + ζ·Segurança

Instalação

$ synaptic mcp download csharp-xunit
$ synaptic skills detail csharp-xunit
$ synaptic skills live csharp-xunit

Dependências

Microsoft.NET.Test.Sdkxunitxunit.runner.visualstudioMoqNSubstitute

Links

GitHub Repository