Skip to content

AspNetCore.Simple.MsTest.Sdk

API integration tests in one line: test data in files, whole-response comparison and analyzers that guide you.

Open source
4 posts33 min reading time
Start with part 1 →
  1. API integration tests in one line — getting started with AspNetCore.Simple.MsTest.SdkFifteen lines of HttpClient plumbing and cherry-picked asserts per endpoint, or one line and a JSON file? A hands-on start with AspNetCore.Simple.MsTest.Sdk — setup, file-based snapshots of the whole HTTP response, one test per JSON file, and how to handle IDs and timestamps.9 min read
  2. Test failures that explain themselves — diffs, curl and contract checks in AspNetCore.Simple.MsTest.SdkA bare "Expected:<Son>. Actual:<>." is where debugging starts, not where it ends. How AspNetCore.Simple.MsTest.Sdk turns a failing API test into a categorized report with the exact JSON path, the HTTP context, a ready-to-run curl and a suggested fix, and why it checks your test against the endpoint's own contract.8 min read
  3. A fluent API the compiler guards — type-state builders and analyzers in AspNetCore.Simple.MsTest.SdkThe worst bug a test SDK can have is a test that never runs and stays green. How the fluent API of AspNetCore.Simple.MsTest.Sdk mirrors your endpoint metadata, why a GET with a body doesn't compile, and the three Roslyn analyzers with code fixes that ship inside the NuGet package.9 min read
  4. AspNetCore.Simple.MsTest.Sdk vs. hand-written WebApplicationFactory tests — an honest comparisonI wrote the library, so take the praise with salt and read the trade-offs carefully. The same endpoint tested four ways, a side-by-side table, what you give up with a snapshot SDK, where it doesn't fit, and how to migrate an existing suite one test at a time.7 min read