From a4fd19b2a89a4bcae8c44df8107b64c20fffb889 Mon Sep 17 00:00:00 2001 From: Whit Waldo Date: Sat, 18 Jan 2025 16:41:40 -0600 Subject: [PATCH] Migrated Dapr.E2E.Test Signed-off-by: Whit Waldo --- test/Dapr.E2E.Test/Actors/E2ETests.WeaklyTypedTests.cs | 8 ++++---- test/Dapr.E2E.Test/Dapr.E2E.Test.csproj | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/Dapr.E2E.Test/Actors/E2ETests.WeaklyTypedTests.cs b/test/Dapr.E2E.Test/Actors/E2ETests.WeaklyTypedTests.cs index b250d731e..5518f32b8 100644 --- a/test/Dapr.E2E.Test/Actors/E2ETests.WeaklyTypedTests.cs +++ b/test/Dapr.E2E.Test/Actors/E2ETests.WeaklyTypedTests.cs @@ -17,7 +17,7 @@ namespace Dapr.E2E.Test using System.Threading.Tasks; using Dapr.Actors; using Dapr.E2E.Test.Actors.WeaklyTypedTesting; - using FluentAssertions; + using Shouldly; using Xunit; public partial class E2ETests : IAsyncLifetime @@ -34,7 +34,7 @@ public async Task WeaklyTypedActorCanReturnPolymorphicResponse() var result = await proxy.InvokeMethodAsync(nameof(IWeaklyTypedTestingActor.GetPolymorphicResponse)); - result.Should().BeOfType().Which.DerivedProperty.Should().NotBeNullOrWhiteSpace(); + result.ShouldBeOfType().DerivedProperty.ShouldNotBeNullOrWhiteSpace(); } #else [Fact] @@ -48,7 +48,7 @@ public async Task WeaklyTypedActorCanReturnDerivedResponse() var result = await proxy.InvokeMethodAsync(nameof(IWeaklyTypedTestingActor.GetPolymorphicResponse)); - result.Should().BeOfType().Which.DerivedProperty.Should().NotBeNullOrWhiteSpace(); + result.ShouldBeOfType().DerivedProperty.ShouldNotBeNullOrWhiteSpace(); } #endif [Fact] @@ -62,7 +62,7 @@ public async Task WeaklyTypedActorCanReturnNullResponse() var result = await proxy.InvokeMethodAsync(nameof(IWeaklyTypedTestingActor.GetNullResponse)); - result.Should().BeNull(); + result.ShouldBeNull(); } } } diff --git a/test/Dapr.E2E.Test/Dapr.E2E.Test.csproj b/test/Dapr.E2E.Test/Dapr.E2E.Test.csproj index fc92396a6..503792239 100644 --- a/test/Dapr.E2E.Test/Dapr.E2E.Test.csproj +++ b/test/Dapr.E2E.Test/Dapr.E2E.Test.csproj @@ -1,10 +1,10 @@  - + all