Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

assertion

The line in a test that checks the result and fails the test if it's wrong.

An assertion (Assert.Equal, Assert.Throws, ...) compares an actual outcome with the expected one and throws a test failure when they differ.

Examples

  • Assert.Equal(12.50m, total); fails the test, showing both values, if total is anything else.

Read the full section →