Migrate bUnit test files from deprecated beta API (1.0.0-beta-10) to bUnit 2.x stable API. Use this when working on .razor test files in BlazorWebFormsComponents.Test that contain old patterns like TestComponentBase, Fixture, or SnapshotTest.
SkillScore91Maintained
Automatic
◆QA & Test Engineering pack
Last verified 8/19/2026
What it changes
Passed 20 of 22 test cases with the skill, and 9 of 22 without it.
Without skill41%
With skill91%
Checks it passed that the model alone missed
Retrieves ILogger via Services.GetService
Inherits from BunitContext in the Razor file
Specifies @inherits BunitContext as the base directive
and 10 more in the full report
11 fixed9 passed either way2 still failing0 broke
Pass-rate lift
+50 pp
Tokens
+28%
Agent turns
0%
Response time
-55%
Model gemini-3.6-flashMeasured 8/19/2026v120 of 22 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 11 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 11
Prompt
A legacy `<SnapshotTest Description="displays user name">` for UserCard is being converted. According to the test naming convention, what should the generated test method be named?
What was checked, without and with the skill
Checked
Without skill
With skill
Names the method UserCard_Default_DisplaysUserName or UserCard_Default_RendersCorrectly
Missed
Passed
case-21 · gemini-3.6-flash · 8/19/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md263 linessingle file
bUnit Test Migration Skill (Beta → 2.x)
This skill provides guidance for migrating test files from the deprecated bUnit 1.0.0-beta-10 API to bUnit 2.5.3 stable API. Use this when you encounter test files using the old TestComponentBase, <Fixture>, or <SnapshotTest> patterns.
When to Apply
Apply this skill when a .razor test file contains any of these patterns:
**WORKFLOW SKILL** — Migrate Web Forms data access and architecture to Blazor Server. Covers EF6→EF Core with IDbContextFactory, Session→SessionShim, Global.asax→Program.cs, Web.config→appsettings.json, DataSource controls→service injection. WHEN: "migrate EF6", "session state to services", "Global.asax to Program.cs", "data access migration", "SelectMethod to delegate". INVOKES: dotnet CLI for EF migrations. FOR SINGLE OPERATIONS: use bwfc-migration for markup, bwfc-identity-migration for auth.