·xunit
</>

xunit

stuartf303/sorcha

使用 xUnit 框架在 30 个测试项目中编写单元测试。 使用时机:编写新测试、添加测试覆盖率、创建集成测试、设置测试装置或调试测试失败。

9安装·2热度·@stuartf303

安装

$npx skills add https://github.com/stuartf303/sorcha --skill xunit

SKILL.md

xUnit 2.9.3 is the testing framework for all 30 test projects in Sorcha. Tests use FluentAssertions for readable assertions and Moq for mocking. All tests follow strict MethodNameScenarioExpectedBehavior naming.

| [Fact] | Single test case | [Fact] public void MethodTest() {} | | [Theory] | Parameterized tests | [Theory] [InlineData(1)] public void Method(int x) {} | | IClassFixture | Per-class shared state | class Tests : IClassFixture | | ICollectionFixture | Cross-class shared state | [Collection("Db")] class Tests |

| IAsyncLifetime | Async setup/teardown | Task InitializeAsync(), Task DisposeAsync() |

使用 xUnit 框架在 30 个测试项目中编写单元测试。 使用时机:编写新测试、添加测试覆盖率、创建集成测试、设置测试装置或调试测试失败。 来源:stuartf303/sorcha。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/stuartf303/sorcha --skill xunit
分类
</>开发工具
认证
收录时间
2026-02-01
更新时间
2026-02-18

快速解答

什么是 xunit?

使用 xUnit 框架在 30 个测试项目中编写单元测试。 使用时机:编写新测试、添加测试覆盖率、创建集成测试、设置测试装置或调试测试失败。 来源:stuartf303/sorcha。

如何安装 xunit?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/stuartf303/sorcha --skill xunit 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/stuartf303/sorcha

详情

分类
</>开发工具
来源
skills.sh
收录时间
2026-02-01