Asynchronous tests

Since serverless compute is mostly asynchronous, we need to write asynchronous tests. This may present a challenge in certain unit testing frameworks. In the latest MSTest, all that is required is to define the test method type to be public async Task . Then we can use the await modifier to await a function or another asynchronous method.

Get Serverless computing in Azure with .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.