K1Lesson 45 of 49about 60 minutes
Module 1.9 · Asynchronous code
Testing asynchronous code
What you learn in this lesson
- write asynchronous tests in xUnit with async Task, await and Assert.ThrowsAnyAsync
- know xUnit’s two rules for asynchronous tests: never block, pass on the test’s token
- build a fake HttpMessageHandler that answers without going out to the network
- test a time limit with FakeTimeProvider without waiting real seconds
- test the Kladde’s holiday request without a network
This lesson belongs to course K1
You will see this lesson's text and video once you have bought the course. The goals above show what you learn here.
€149.00
incl. VAT, one-time payment
Access to all of the course's lessons with their exercises, solutions and videos on this site, for 24 months from the purchase. A self-study course: no tutoring, no exams or grading by us, and no certificate.
Sign in and buy