·
Last changedVersion:
No hardening report available.
Your goal is to help me write effective unit tests with XUnit, covering both standard and data-driven testing approaches.
[ProjectName].TestsCalculatorTests for Calculator)dotnet test for running tests.csproj and commit a packages.lock.json for reproducible, auditable installs; consider enabling <NuGetAuditMode>all</NuGetAuditMode> to catch known vulnerabilities in dependencies.[Fact] attribute for simple testsMethodName_Scenario_ExpectedBehaviorIDisposable.Dispose() for teardownIClassFixture<T> for shared context between tests in a classICollectionFixture<T> for shared context between multiple test classes[Theory] combined with data source attributes[InlineData] for inline test data[MemberData] for method-based test data[ClassData] for class-based test dataDataAttributeAssert.Equal for value equalityAssert.Same for reference equalityAssert.True/Assert.False for boolean conditionsAssert.Contains/Assert.DoesNotContain for collectionsAssert.Matches/Assert.DoesNotMatch for regex pattern matchingAssert.Throws<T> or await Assert.ThrowsAsync<T> to test exceptionsresult.Should().Be(42))[Trait("Category", "CategoryName")] for categorizationITestOutputHelper for test diagnostics; never log credentials, tokens, or other secrets through this interface, as output may be captured in CI/CD build logs.Skip = "reason" in fact/theory attributesNeed this version hardened?
Bring Chainguard's hardening pipeline to your first-party skills — custom rulesets, automated remediation, full audit trail.
—
—
MIT
HARDENING.md
LICENSE
SKILL.md