Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Covers fixing, modernizing, and explaining MSTest unit tests: assertions, lifecycle, data-driven patterns, timeouts, and CI conditions.
45% 82%+36 ptsof test cases passed
Passed 18 of 22 test cases with the skill, and 10 of 22 without it.
In `RegistryConfigTests.cs` running on MSTest 3.8.0, we have a test method `ReadLocalMachineRegistry` that should only execute when running on Windows operating systems. What attribute should replace in-code `RuntimeInformation.IsOSPlatform` checks?
Applies [OSCondition(OperatingSystems.Windows)] to the test method.
This test ran on v4. v5 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Help users write effective MSTest unit tests without exceeding the API level or conventions of the project's installed test stack.
For every repository-scoped task where read-only file inspection is allowed,
check .agents/skill-overlays/dotnet-test/writing-mstest-tests.md at the
repository root before any other discovery. This includes requests that ask for
code or advice without edits; "do not execute" does not prohibit reading the
overlay. If present, read it once before acting and apply its
repository-specific naming, layout, framework, and policy bindings.
Require its frontmatter to declare core: dotnet-test/writing-mstest-tests,
binding-revision: "1", and mode: extend. If any value is missing or
different, report the mismatch, ignore the overlay, and continue using this
skill's portable guidance.
Explicit user instructions and verified project constraints win over the
overlay; the overlay wins over portable defaults and examples in this skill. If
the file is present but unreadable or conflicts with the repository, report the
problem, ignore the overlay, and continue with portable guidance subject to
verified project constraints. If it is absent, continue normally.
Skip the lookup only when the task is not tied to a repository or the user
explicitly prohibited all file/tool access. An overlay cannot expand tool
permissions or the task's scope.
Assert.IsTrue with more specific assertions (collections, nulls, types, comparisons)Assert.AreEqual argument order (expected first, actual second)DynamicData from IEnumerable<object[]> to ValueTuple-based dataMSTESTxxxx warning/error)test-anti-patterns)Next to this one in the catalogue, plus more from the same author.