用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/G1Joshi/Agent-Skills --skill nunit命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | nunit |
| description | NUnit .NET testing framework. Use for .NET testing. |
Ported from JUnit, NUnit is one of the oldest and most feature-rich frameworks for .NET. Ideally suited for complex test setups and legacy migrations.
[OneTimeSetUp], [SetUp], [TearDown] hooks which xUnit discourages.[Parallelizable]).using NUnit.Framework;
[TestFixture]
public class Tests
{
[SetUp]
public void Setup()
{
}
[Test]
public void Test1()
{
Assert.Pass();
}
[TestCase(1, 2, 3)]
[TestCase(2, 2, 4)]
public void TestAdd(int a, int b, int expected)
{
Assert.AreEqual(expected, a + b);
}
}
NUnit offers a powerful fluent assertion style.
Assert.That(result, Is.EqualTo(4));
Assert.That(list, Has.Exactly(1).EqualTo("foo"));
[Test]: Marks a method as a test.[TestCase]: Parameterized test input.[Category]: Grouping for filtering (dotnet test --filter Category=Integration).Do:
Assert.That): It enables better error messages than Assert.AreEqual.AssemblyInfo.cs to speed up lengthy suites. [assembly: Parallelizable(ParallelScope.Fixtures)].Don't: