ScottPlot Test Runner
ScottPlot/ScottPlot
Run or add ScottPlot 5 tests. Use for unit-test and cookbook-test work; unless explicitly asked otherwise, restrict manual test execution to the Unit Tests…
Guidelines and patterns for writing unit tests in C using MSTest SDK.
$ npx skills add microsoft-foundry/foundry-agent-webapp --skill writing-unit-tests-csharp -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install microsoft-foundry/foundry-agent-webapp writing-unit-tests-csharp --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/microsoft-foundry/foundry-agent-webapp.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/writing-unit-tests-csharp .claude/skills/writing-unit-tests-csharp && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "writing-unit-tests-csharp" agent skill from https://github.com/microsoft-foundry/foundry-agent-webapp/tree/main/.github/skills/writing-unit-tests-csharp into .claude/skills/writing-unit-tests-csharp/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "writing-unit-tests-csharp", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/microsoft-foundry/foundry-agent-webapp/tree/main/.github/skills/writing-unit-tests-csharpType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add microsoft-foundry/foundry-agent-webapp --skill writing-unit-tests-csharp -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install microsoft-foundry/foundry-agent-webapp writing-unit-tests-csharp --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/microsoft-foundry/foundry-agent-webapp.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.github/skills/writing-unit-tests-csharp .agents/skills/writing-unit-tests-csharp && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "writing-unit-tests-csharp" agent skill from https://github.com/microsoft-foundry/foundry-agent-webapp/tree/main/.github/skills/writing-unit-tests-csharp into .agents/skills/writing-unit-tests-csharp/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "writing-unit-tests-csharp", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add microsoft-foundry/foundry-agent-webapp --skill writing-unit-tests-csharp -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install microsoft-foundry/foundry-agent-webapp writing-unit-tests-csharp --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/microsoft-foundry/foundry-agent-webapp.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.github/skills/writing-unit-tests-csharp .cursor/skills/writing-unit-tests-csharp && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "writing-unit-tests-csharp" agent skill from https://github.com/microsoft-foundry/foundry-agent-webapp/tree/main/.github/skills/writing-unit-tests-csharp into .cursor/skills/writing-unit-tests-csharp/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "writing-unit-tests-csharp", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/microsoft-foundry/foundry-agent-webapp.git --path .github/skills/writing-unit-tests-csharp--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add microsoft-foundry/foundry-agent-webapp --skill writing-unit-tests-csharp -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install microsoft-foundry/foundry-agent-webapp writing-unit-tests-csharp --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/microsoft-foundry/foundry-agent-webapp.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.github/skills/writing-unit-tests-csharp .gemini/skills/writing-unit-tests-csharp && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "writing-unit-tests-csharp" agent skill from https://github.com/microsoft-foundry/foundry-agent-webapp/tree/main/.github/skills/writing-unit-tests-csharp into .gemini/skills/writing-unit-tests-csharp/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "writing-unit-tests-csharp", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install microsoft-foundry/foundry-agent-webapp writing-unit-tests-csharpInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add microsoft-foundry/foundry-agent-webapp --skill writing-unit-tests-csharp -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/microsoft-foundry/foundry-agent-webapp.git skills-src && mkdir -p .github/skills && cp -r skills-src/.github/skills/writing-unit-tests-csharp .github/skills/writing-unit-tests-csharp && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "writing-unit-tests-csharp" agent skill from https://github.com/microsoft-foundry/foundry-agent-webapp/tree/main/.github/skills/writing-unit-tests-csharp into .github/skills/writing-unit-tests-csharp/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "writing-unit-tests-csharp", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add microsoft-foundry/foundry-agent-webapp --skill writing-unit-tests-csharp -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install microsoft-foundry/foundry-agent-webapp writing-unit-tests-csharp --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/microsoft-foundry/foundry-agent-webapp.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.github/skills/writing-unit-tests-csharp .opencode/skills/writing-unit-tests-csharp && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "writing-unit-tests-csharp" agent skill from https://github.com/microsoft-foundry/foundry-agent-webapp/tree/main/.github/skills/writing-unit-tests-csharp into .opencode/skills/writing-unit-tests-csharp/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "writing-unit-tests-csharp", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
writing-unit-tests-csharpGuidelines and patterns for writing unit tests in C using MSTest SDK.
Writing Unit Tests Csharp is an agent skill from microsoft-foundry/foundry-agent-webapp. Guidelines and patterns for writing unit tests in C using MSTest SDK.
Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Testing & QA, covering Unit testing. It works with C# and .NET. The repository describes itself as: GitHub Copilot enabled repo for building and deploying a web application with Entra ID authentication and integrated with Azure AI Foundry Agents. The licence is MIT.
Read from SKILL.md and the folder at commit f6cb362. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
dotnetFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Writing Unit Tests Csharp loads about 1k tokens when it runs. Until then it costs about 24 tokens; SKILL.md has 203 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from microsoft-foundry/foundry-agent-webapp at commit f6cb362, republished under its MIT licence (© microsoft-foundry). 203 words, ~1,024 tokens.
.claude/skills/writing-unit-tests-csharp/SKILL.md (or your agent's skills folder).This skill covers writing unit tests for the backend using MSTest SDK. The project uses a lean, zero-config approach that leverages Microsoft's official SDK-style testing.
backend/
├── WebApp.sln
├── WebApp.Api/
│ ├── Models/ # DTOs and request/response models
│ ├── Services/ # Business logic and agent integration
│ └── Program.cs # Minimal API endpoints
└── WebApp.Api.Tests/
├── WebApp.Api.Tests.csproj
└── [TestClass].cs # Test files organized by class under testThe test project uses MSTest SDK which eliminates the need for explicit package references:
See backend/WebApp.Api.Tests/WebApp.Api.Tests.csproj for current configuration. The project uses MSTest SDK which eliminates the need for explicit package references — just set Sdk="MSTest.Sdk/{version}" in the project element.
using WebApp.Api.Models;
namespace WebApp.Api.Tests;
[TestClass]
public class ErrorResponseFactoryTests
{
[TestMethod]
public void CreateFromException_ReturnsCorrectStatusCode()
{
// Arrange
var exception = new InvalidOperationException("Test");
// Act
var result = ErrorResponseFactory.CreateFromException(exception, 500, isDevelopment: false);
// Assert
Assert.AreEqual(500, result.Status);
}
[TestMethod]
[DataRow(400, "Bad Request")]
[DataRow(401, "Unauthorized")]
[DataRow(500, "Internal Server Error")]
public void CreateFromException_MapsStatusToTitle(int status, string expectedTitle)
{
// Parameterized test using DataRow
}
}# Run all backend tests
cd backend
dotnet test
# Run with verbose output
dotnet test --verbosity normal
# Run specific test class
dotnet test --filter "FullyQualifiedName~ErrorResponseFactoryTests"
# Run with coverage (requires coverlet)
dotnet test --collect:"XPlat Code Coverage"| Class | What to Test |
|---|---|
ErrorResponseFactory | Status code mapping, dev vs prod mode, exception detail hiding |
ChatRequest | Validation logic if any |
StreamChunk | Serialization/deserialization |
AnnotationInfo | Property mapping |
| Class | Testing Approach |
|---|---|
AgentFrameworkService | Use validating-ui-features skill with Playwright for integration tests |
Use descriptive names following: MethodName_Scenario_ExpectedBehavior
[TestMethod]
public void CreateFromException_WhenDevelopmentMode_IncludesStackTrace() { }
[TestMethod]
public void CreateFromException_WhenProductionMode_HidesStackTrace() { }MSTest provides these assertion methods:
// Equality
Assert.AreEqual(expected, actual);
Assert.AreNotEqual(notExpected, actual);
// Nullability
Assert.IsNull(value);
Assert.IsNotNull(value);
// Boolean
Assert.IsTrue(condition);
Assert.IsFalse(condition);
// Type
Assert.IsInstanceOfType(obj, typeof(ExpectedType));
// Collections
CollectionAssert.Contains(collection, element);
CollectionAssert.AreEqual(expected, actual);
// Exceptions
Assert.ThrowsException<InvalidOperationException>(() => MethodThatThrows());Use the validating-ui-features skill and Playwright when:
| Command | Purpose |
|---|---|
dotnet test | Run all tests |
dotnet test --filter "Name~Test" | Run filtered tests |
dotnet build | Build without running |
dotnet test --list-tests | List all tests |
© microsoft-foundry, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .github/skills/writing-unit-tests-csharp of microsoft-foundry/foundry-agent-webapp.
Open the folder on GitHubat commit f6cb362
Writing Unit Tests Csharp next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Writing Unit Tests Csharp this skillmicrosoft-foundry/foundry-agent-webapp | 127 | — | ~1k | Automated safety check: Pass | MIT | |
| ScottPlot Test RunnerScottPlot/ScottPlot | 6.8k | — | ~308 | Automated safety check: Pass | MIT | |
| Verifyvaldisiljuconoks/LocalizationProvider | 180 | — | ~159 | Automated safety check: Pass | Apache-2.0 | |
| Csharp Testingaffaan-m/ECC | 274k | 1 repos | ~2.2k | Automated safety check: Pass | MIT | |
| Csharp Testingaffaan-m/ECC | 274k | — | ~2k | Automated safety check: Pass | MIT | |
| Csharp Testingaffaan-m/ECC | 274k | — | ~2k | Automated safety check: Pass | MIT |
ScottPlot/ScottPlot
Run or add ScottPlot 5 tests. Use for unit-test and cookbook-test work; unless explicitly asked otherwise, restrict manual test execution to the Unit Tests…
valdisiljuconoks/LocalizationProvider
Build the solution and run unit tests to verify changes are correct.
affaan-m/ECC
C and .NET testing patterns with xUnit, FluentAssertions, mocking, integration tests, and test organization best practices.
affaan-m/ECC
xUnit、FluentAssertions、モッキング、統合テスト、テスト組織のベストプラクティスを使用したCと.NETのテストパターン。
affaan-m/ECC
使用 xUnit、FluentAssertions、模拟、集成测试和测试组织最佳实践的 C 和 .NET 测试模式. An agent skill from affaan-m/ECC.
github/awesome-copilot
Get best practices for TUnit unit testing, including data-driven tests
microsoft-foundry/foundry-agent-webapp
Provides commit message format and workflow for this repository.
microsoft-foundry/foundry-agent-webapp
Provides SSE streaming patterns for the chat API and frontend.
microsoft-foundry/foundry-agent-webapp
Provides structured plan template for feature implementation.
microsoft-foundry/foundry-agent-webapp
Provides research patterns for Foundry Agent Service SDK. An agent skill from microsoft-foundry/foundry-agent-webapp.
microsoft-foundry/foundry-agent-webapp
Provides deployment commands and troubleshooting for Azure Container Apps.
microsoft-foundry/foundry-agent-webapp
Synchronize MCP server configuration between VS Code (.vscode/mcp.json) and Copilot CLI (~/.copilot/mcp-config.json).
Categories
Guidelines and patterns for writing unit tests in C using MSTest SDK. Writing Unit Tests Csharp is an agent skill from microsoft-foundry/foundry-agent-webapp. Guidelines and patterns for writing unit tests in C using MSTest SDK.
Writing Unit Tests Csharp fits situations like: tasks that involve Unit testing.
Run `npx skills add microsoft-foundry/foundry-agent-webapp --skill writing-unit-tests-csharp -a claude-code`. Or copy the skill folder (.github/skills/writing-unit-tests-csharp in microsoft-foundry/foundry-agent-webapp) into .claude/skills/writing-unit-tests-csharp in your project. Claude Code loads it when a task matches its description.
Run `npx skills add microsoft-foundry/foundry-agent-webapp --skill writing-unit-tests-csharp -a codex`. Or copy the skill folder (.github/skills/writing-unit-tests-csharp in microsoft-foundry/foundry-agent-webapp) into .agents/skills/writing-unit-tests-csharp in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add microsoft-foundry/foundry-agent-webapp --skill writing-unit-tests-csharp -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/writing-unit-tests-csharp, .gemini/skills/writing-unit-tests-csharp, .github/skills/writing-unit-tests-csharp and .opencode/skills/writing-unit-tests-csharp in your project.
Going by SKILL.md and its folder, Writing Unit Tests Csharp needs the command-line tools its instructions call (dotnet).
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Writing Unit Tests Csharp is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1k tokens (SKILL.md is roughly 4.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Writing Unit Tests Csharp: ScottPlot Test Runner (ScottPlot/ScottPlot, 6.8k stars), Verify (valdisiljuconoks/LocalizationProvider, 180 stars), Csharp Testing (affaan-m/ECC, 274k stars) and Csharp Testing (affaan-m/ECC, 274k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
microsoft-foundry (a GitHub organization) maintains it in microsoft-foundry/foundry-agent-webapp, which has 127 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on April 21, 2026.
Source: microsoft-foundry/foundry-agent-webapp on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.