Skip to content

Commit

Permalink
Update tutorial-2.md (#6736)
Browse files Browse the repository at this point in the history
Make clear how we create the test probe in an xunit test
  • Loading branch information
richard-smith-67 authored May 6, 2023
1 parent 8f13c74 commit 8ad8d7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/articles/intro/getting-started/tutorial-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ Putting read and write protocol together, the device actor will look like this:
[!code-csharp[Main](../../../../src/core/Akka.Docs.Tutorials/Tutorial2/Device.cs?name=full-device)]

We are also responsible for writing a new test case now, exercising both the read/query and write/record functionality
together:
together. Note, that your test class should implement Akka.TestKit.XUnit2.TestKit in order to access CreateTestProbe().

[!code-csharp[Main](../../../../src/core/Akka.Docs.Tutorials/Tutorial2/DeviceSpec.cs?name=device-write-read-test)]

Expand Down

0 comments on commit 8ad8d7c

Please sign in to comment.