From 80ea91faa1b000171d295b514af9a3838b4c7d5a Mon Sep 17 00:00:00 2001 From: Whit Waldo Date: Sat, 18 Jan 2025 18:01:14 -0600 Subject: [PATCH] Updating more unit tests Signed-off-by: Whit Waldo --- test/Dapr.Actors.Test/Description/MethodDescriptionTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Dapr.Actors.Test/Description/MethodDescriptionTests.cs b/test/Dapr.Actors.Test/Description/MethodDescriptionTests.cs index 0a6fa0c5..765a6ce3 100644 --- a/test/Dapr.Actors.Test/Description/MethodDescriptionTests.cs +++ b/test/Dapr.Actors.Test/Description/MethodDescriptionTests.cs @@ -114,7 +114,7 @@ public void MethodDescription_CreateThrowsArgumentException_WhenMethodHasMultipl // Assert var exception = Should.Throw(action); - exception.Message.ShouldBe("Method 'MethodWithMultipleTokens' of actor interface '*+ITestActor' has a '*.CancellationToken' parameter that is not the last parameter. If an actor method accepts a '*.CancellationToken' parameter, it must be the last parameter.*"); + exception.Message.ShouldMatch(@"Method 'MethodWithMultipleTokens' of actor interface '.*\+ITestActor' has a '.*\.CancellationToken' parameter that is not the last parameter. If an actor method accepts a '.*\.CancellationToken' parameter, it must be the last parameter.*"); exception.ParamName.ShouldBe("actorInterfaceType"); }