© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
T. NelsonIntroducing Microsoft Orleanshttps://doi.org/10.1007/978-1-4842-8014-0_7

7. Unit Tests

Thomas Nelson1  
Louisville, KY, USA

As with any software, we need to test it. Thankfully, a NuGet library allows us to set up a host to run our unit tests. This chapter will set up a grain to test, a unit test project, test the code, and execute the test. Also, we will learn about Orleans’ TestingHost while setting up xUnit’s testing framework that runs grains on a silo stood up specifically for testing. We will learn how to test individual methods, call grains, and test the response from a grain called. I enjoy setting up tests for my code and enjoy the way ...

Get Introducing Microsoft Orleans: Implementing Cloud-Native Services with a Virtual Actor Framework 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.