スキル一覧に戻る
danielshue

csharp-test-generation

by danielshue

Notebook Automation for Coursera

0🍴 1📅 2026年1月25日
GitHubで見るManusで実行

SKILL.md


name: csharp-test-generation description: Generate MSTest + Moq unit tests for Notebook Automation, following existing patterns in src/c-sharp/NotebookAutomation.Tests. examples: - "Add MSTest + Moq tests for a new service in NotebookAutomation.Core" - "Create a regression test for a bug fix" - "Increase coverage for edge cases (null/empty/exception paths)"

C# Test Generation (MSTest + Moq)

When to use

Use this skill when the user asks to:

  • Add new unit tests or increase coverage for C# code.
  • Create tests for bug fixes or regressions.

Workflow

  1. Locate the production code and existing tests near it (mirror the folder structure when possible).
  2. Reuse existing fixtures/utilities and established patterns.
  3. Write tests using Arrange–Act–Assert.
  4. Prefer deterministic tests; use temp files/folders and clean up.

Conventions to follow

Practical patterns (from this repo)

  • Use [TestInitialize] for setup and [TestCleanup] for temp-file cleanup.
  • Use Assert.ThrowsException<T>() for exception paths.
  • Use Moq Setup(...)/Verify(...) for external dependency interactions.

Examples (input → expected output)

Example: Add tests for a bug fix

Input: “Fix a null-handling bug and add coverage.”

Expected output:

  • A regression test that fails before the fix and passes after
  • Clear Arrange–Act–Assert structure
  • Minimal mocking (only external dependencies)

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です