Skip to Content
Serverless computing in Azure with .NET
book

Serverless computing in Azure with .NET

by Sasha Rosenbaum
August 2017
Intermediate to advanced
468 pages
12h 5m
English
Packt Publishing
Content preview from Serverless computing in Azure with .NET

Unit testing approach

A common approach to writing tests can be called AAA, which stands for Arrange -> Act -> Assert. With this approach, each test case is structured as follows:

  • Arrange: This section of the test initializes the objects, variables, and mocks, and sets the data passed to the unit under test
  • Act: This section invokes the unit under test with the arranged parameters
  • Assert: This section verifies that the unit under test behaved as expected

To learn more about Arrange/Act/Assert pattern, please visit https://msdn.microsoft.com/en-us/library/hh694602.aspx#Write your tests

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Azure Serverless Computing

Mastering Azure Serverless Computing

Lorenzo Barbieri, Massimo Bonanni
Implementing Azure: Putting Modern DevOps to Use

Implementing Azure: Putting Modern DevOps to Use

Florian Klaffenbach, Oliver Michalski, Markus Klein, Mohamed Wali

Publisher Resources

ISBN: 9781787288393Supplemental Content