Skip to content

Commit

Permalink
Removed unused reference to FluentAssertions in light of licensing ch…
Browse files Browse the repository at this point in the history
…ange (#1449)

* Removed unused reference to FluidAssertions in light of licensing change

Signed-off-by: Whit Waldo <[email protected]>

* Removed from Dapr.AI.Test

Signed-off-by: Whit Waldo <[email protected]>

* Migrated Dapr.Extensions.Configuration.Test to use Shouldly

Signed-off-by: Whit Waldo <[email protected]>

* Migrated Dapr.Common.Test

Signed-off-by: Whit Waldo <[email protected]>

* Migrated Dapr.Actors.AspNetCore.Test from FluentAssertions

Signed-off-by: Whit Waldo <[email protected]>

* Added missing copyright header

Signed-off-by: Whit Waldo <[email protected]>

* Migrated Dapr.Actors.Test

Signed-off-by: Whit Waldo <[email protected]>

* Migrated Dapr.Client.Test

Signed-off-by: Whit Waldo <[email protected]>

* Removed unused using reference

Signed-off-by: Whit Waldo <[email protected]>

* Migrated Dapr.E2E.Test

Signed-off-by: Whit Waldo <[email protected]>

* Migrated Dapr.AspNetCore.Test

Signed-off-by: Whit Waldo <[email protected]>

* Migrated Dapr.AspNetCore.IntegrationTest

Signed-off-by: Whit Waldo <[email protected]>

* Removed reference to FluentAssertions

Signed-off-by: Whit Waldo <[email protected]>

* Fixed several unit tests

Signed-off-by: Whit Waldo <[email protected]>

* Fixed another unit test

Signed-off-by: Whit Waldo <[email protected]>

* Fixed more tests

Signed-off-by: Whit Waldo <[email protected]>

* Fixed additional unit tests

Signed-off-by: Whit Waldo <[email protected]>

* Updating more unit tests

Signed-off-by: Whit Waldo <[email protected]>

* Fixed more unit tests

Signed-off-by: Whit Waldo <[email protected]>

* Fixed more unit tests

Signed-off-by: Whit Waldo <[email protected]>

* Fixed more unit tests

Signed-off-by: Whit Waldo <[email protected]>

---------

Signed-off-by: Whit Waldo <[email protected]>
  • Loading branch information
WhitWaldo authored Jan 30, 2025
1 parent 676c0d7 commit 9e06725
Show file tree
Hide file tree
Showing 52 changed files with 1,699 additions and 1,739 deletions.
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

0 comments on commit 9e06725

Please sign in to comment.