Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed unused reference to FluentAssertions in light of licensing change #1449

Draft
wants to merge 21 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<PackageVersion Include="BenchmarkDotNet" Version="0.14.0" />
<PackageVersion Include="coverlet.collector" Version="6.0.2" />
<PackageVersion Include="coverlet.msbuild" Version="6.0.2" />
<PackageVersion Include="FluentAssertions" Version="5.9.0" />
<PackageVersion Include="GitHubActionsTestLogger" Version="1.1.2" />
<PackageVersion Include="Google.Api.CommonProtos" Version="2.2.0" />
<PackageVersion Include="Google.Protobuf" Version="3.28.2" />
Expand Down Expand Up @@ -43,6 +42,7 @@
<PackageVersion Include="Serilog.AspNetCore" Version="6.1.0" />
<PackageVersion Include="Serilog.Sinks.Console" Version="4.1.0" />
<PackageVersion Include="Serilog.Sinks.File" Version="5.0.0" />
<PackageVersion Include="Shouldly" Version="4.2.1" />
<PackageVersion Include="System.Formats.Asn1" Version="6.0.1" />
<PackageVersion Include="System.Text.Json" Version="6.0.10" />
<PackageVersion Include="xunit" Version="2.9.2" />
Expand Down
1 change: 0 additions & 1 deletion test/Dapr.AI.Test/Dapr.AI.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="FluentAssertions"/>
<PackageReference Include="Microsoft.Extensions.Configuration" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="xunit" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="FluentAssertions" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" />
<PackageReference Include="xunit" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="FluentAssertions" />
<PackageReference Include="Microsoft.AspNetCore.TestHost" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="Moq" />
Expand Down
61 changes: 30 additions & 31 deletions test/Dapr.Actors.Test/ActorCodeBuilderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,44 +11,43 @@
// limitations under the License.
// ------------------------------------------------------------------------

namespace Dapr.Actors.Test
{
using System.Threading.Tasks;
using Dapr.Actors.Builder;
using Dapr.Actors.Communication;
using Dapr.Actors.Description;
using Dapr.Actors.Runtime;
using Xunit;
namespace Dapr.Actors.Test;

using System.Threading.Tasks;
using Dapr.Actors.Builder;
using Dapr.Actors.Communication;
using Dapr.Actors.Description;
using Dapr.Actors.Runtime;
using Xunit;

/// <summary>
/// Test class for Actor Code builder.
/// </summary>
public class ActorCodeBuilderTests
{
/// <summary>
/// Test class for Actor Code builder.
/// Tests Proxy Generation.
/// </summary>
public class ActorCodeBuilderTests
[Fact]
public void TestBuildActorProxyGenerator()
{
/// <summary>
/// Tests Proxy Generation.
/// </summary>
[Fact]
public void TestBuildActorProxyGenerator()
{
ActorCodeBuilder.GetOrCreateProxyGenerator(typeof(ITestActor));
}
ActorCodeBuilder.GetOrCreateProxyGenerator(typeof(ITestActor));
}

[Fact]
public async Task ActorCodeBuilder_BuildDispatcher()
{
var host = ActorHost.CreateForTest<TestActor>();
[Fact]
public async Task ActorCodeBuilder_BuildDispatcher()
{
var host = ActorHost.CreateForTest<TestActor>();

var dispatcher = ActorCodeBuilder.GetOrCreateMethodDispatcher(typeof(ITestActor));
var methodId = MethodDescription.Create("test", typeof(ITestActor).GetMethod("GetCountAsync"), true).Id;
var dispatcher = ActorCodeBuilder.GetOrCreateMethodDispatcher(typeof(ITestActor));
var methodId = MethodDescription.Create("test", typeof(ITestActor).GetMethod("GetCountAsync"), true).Id;

var impl = new TestActor(host);
var request = new ActorRequestMessageBody(0);
var response = new WrappedRequestMessageFactory();
var impl = new TestActor(host);
var request = new ActorRequestMessageBody(0);
var response = new WrappedRequestMessageFactory();

var body = (WrappedMessage)await dispatcher.DispatchAsync(impl, methodId, request, response, default);
dynamic bodyValue = body.Value;
Assert.Equal(5, (int)bodyValue.retVal);
}
var body = (WrappedMessage)await dispatcher.DispatchAsync(impl, methodId, request, response, default);
dynamic bodyValue = body.Value;
Assert.Equal(5, (int)bodyValue.retVal);
}
}
Loading
Loading