writing-mstest-tests

Pass

Audited by Gen Agent Trust Hub on May 19, 2026

Risk Level: SAFE
Full Analysis
  • Project Configuration and Dependencies: The skill recommends using MSTest.Sdk and standard MSTest metapackages. These are official components of the .NET ecosystem. The examples provided for global.json and .csproj files follow standard developer workflows for dependency management.
  • Test Lifecycle Management: The instructions regarding TestInitialize, TestCleanup, and constructor-based initialization are aligned with standard unit testing practices to ensure test isolation and proper resource management.
  • Assertion and Exception Handling: The skill promotes the use of modern assertion APIs (like Assert.ThrowsExactly) over obsolete patterns (like [ExpectedException]), which is a recommended practice for writing robust and maintainable tests.
  • Data Handling: The guidance for DynamicData using ValueTuple types focuses on type safety and improving test data structures without involving any unsafe data processing or external network operations.
Audit Metadata
Risk Level
SAFE
Analyzed
May 19, 2026, 01:21 PM
Security Audit — agent-trust-hub — writing-mstest-tests