From bf4e7b407138fe03840ffb019f114a8a1c68e6e6 Mon Sep 17 00:00:00 2001 From: Tjaart Blignaut Date: Fri, 21 Oct 2022 16:07:33 +0200 Subject: [PATCH] Update testing-actor-systems.md (#6207) Invalid c# syntax in example --- docs/articles/actors/testing-actor-systems.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/articles/actors/testing-actor-systems.md b/docs/articles/actors/testing-actor-systems.md index 8a355e26cd8..112882de56c 100644 --- a/docs/articles/actors/testing-actor-systems.md +++ b/docs/articles/actors/testing-actor-systems.md @@ -89,12 +89,13 @@ It should be noted that if the last message-receiving assertion of the block is ```csharp var worker = ActorOf(); -Within(200.Milliseconds()) { - worker.Tell("some work"); - ExpectMsg("Some Result"); - ExpectNoMsg(); //will block for the rest of the 200ms - Thead.Sleep(300); //will NOT make this block fail -} +Within(200.Milliseconds(), () => +{ + worker.Tell("some work"); + ExpectMsg("Some Result"); + ExpectNoMsg(); //will block for the rest of the 200ms + Thead.Sleep(300); //will NOT make this block fail +}); ``` ## Accounting for Slow Test System