Write bUnit v2 component tests for BlazorWebFormsComponents. Covers BlazorWebFormsTestContext base class, Render() with inline Razor syntax, Shouldly assertions, testing data-bound components, validation components, event callbacks, JS interop mocking, service registration, authentication testing, and xUnit logger integration.
SkillScore82Maintained
Automatic
◆QA & Test Engineering pack
Last verified 8/19/2026
What it changes
Passed 18 of 22 test cases with the skill, and 8 of 22 without it.
Without skill36%
With skill82%
Checks it passed that the model alone missed
Asserts callback execution using ShouldBeTrue
Finds rendered child component in cut hierarchy
Asserts rendered row count using ShouldBe method
and 11 more in the full report
10 fixed8 passed either way4 still failing0 broke
Pass-rate lift
+45 pp
Tokens
+98%
Agent turns
0%
Response time
-49%
Model gemini-3.6-flashMeasured 8/19/2026v118 of 22 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 10 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 10
Prompt
Write a component test in a `.razor` file for a Button component in BlazorWebFormsComponents to confirm that clicking the button invokes its event callback. Output the complete Razor test code.
What was checked, without and with the skill
Checked
Without skill
With skill
Triggers click event on target rendered element
Passed
Passed
Asserts callback execution using ShouldBeTrue
Missed
Passed
case-10 · 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.md418 linessingle file
bUnit Test Authoring
This skill covers writing new bUnit v2 component tests for the BlazorWebFormsComponents library.
Not for migration. If you need to migrate existing tests from bUnit beta to v2, use the bunit-test-migration skill instead.
Test Infrastructure
BlazorWebFormsTestContext
All BWFC component tests should inherit from BlazorWebFormsTestContext, which extends bUnit's BunitContext with pre-registered services: