Skip to content

Commit

Permalink
Migrated Dapr.E2E.Test
Browse files Browse the repository at this point in the history
Signed-off-by: Whit Waldo <[email protected]>
  • Loading branch information
WhitWaldo committed Jan 18, 2025
1 parent 3ce5722 commit a4fd19b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions test/Dapr.E2E.Test/Actors/E2ETests.WeaklyTypedTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -34,7 +34,7 @@ public async Task WeaklyTypedActorCanReturnPolymorphicResponse()

var result = await proxy.InvokeMethodAsync<ResponseBase>(nameof(IWeaklyTypedTestingActor.GetPolymorphicResponse));

result.Should().BeOfType<DerivedResponse>().Which.DerivedProperty.Should().NotBeNullOrWhiteSpace();
result.ShouldBeOfType<DerivedResponse>().DerivedProperty.ShouldNotBeNullOrWhiteSpace();
}
#else
[Fact]
Expand All @@ -48,7 +48,7 @@ public async Task WeaklyTypedActorCanReturnDerivedResponse()

var result = await proxy.InvokeMethodAsync<DerivedResponse>(nameof(IWeaklyTypedTestingActor.GetPolymorphicResponse));

result.Should().BeOfType<DerivedResponse>().Which.DerivedProperty.Should().NotBeNullOrWhiteSpace();
result.ShouldBeOfType<DerivedResponse>().DerivedProperty.ShouldNotBeNullOrWhiteSpace();
}
#endif
[Fact]
Expand All @@ -62,7 +62,7 @@ public async Task WeaklyTypedActorCanReturnNullResponse()

var result = await proxy.InvokeMethodAsync<ResponseBase>(nameof(IWeaklyTypedTestingActor.GetNullResponse));

result.Should().BeNull();
result.ShouldBeNull();
}
}
}
2 changes: 1 addition & 1 deletion test/Dapr.E2E.Test/Dapr.E2E.Test.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<PackageReference Include="FluentAssertions" />
<PackageReference Include="Google.Protobuf" />
<PackageReference Include="Grpc.Net.ClientFactory" />
<PackageReference Include="Grpc.Tools" PrivateAssets="All" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="Shouldly"/>
<PackageReference Include="xunit" />
<PackageReference Include="xunit.runner.visualstudio">
<PrivateAssets>all</PrivateAssets>
Expand Down

0 comments on commit a4fd19b

Please sign in to comment.