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 ...
7. Unit Tests
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.