Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Migrates bUnit 1.0.0-beta-10 Razor test files to the bUnit 2.x stable API, replacing TestComponentBase, Fixture and SnapshotTest patterns.
Use this skill ↓41% 91%+50 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 9 of 22 without it.
3 of 3 safety checks passed
Not used yet
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.
Apply this skill when a .razor test file contains any of these patterns:
@inherits TestComponentBase<Fixture Test="..."><ComponentUnderTest><SnapshotTest>void MethodName(Fixture fixture)- @inherits TestComponentBase
+ @inherits BunitContext
Remove these XML elements entirely (keep only the component inside):
- <Fixture Test="TestName">
- <ComponentUnderTest>
<MyComponent Parameter="value" />
- </ComponentUnderTest>
- </Fixture>
- void TestMethodName(Fixture fixture)
+ [Fact]
+ public void ComponentName_Scenario_ExpectedResult()
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.