Skip to content

Commit 9e06725

Browse files
authored
Removed unused reference to FluentAssertions in light of licensing change (#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]>
1 parent 676c0d7 commit 9e06725

File tree

52 files changed

+1699
-1739
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1699
-1739
lines changed

Directory.Packages.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
<PackageVersion Include="BenchmarkDotNet" Version="0.14.0" />
88
<PackageVersion Include="coverlet.collector" Version="6.0.2" />
99
<PackageVersion Include="coverlet.msbuild" Version="6.0.2" />
10-
<PackageVersion Include="FluentAssertions" Version="5.9.0" />
1110
<PackageVersion Include="GitHubActionsTestLogger" Version="1.1.2" />
1211
<PackageVersion Include="Google.Api.CommonProtos" Version="2.2.0" />
1312
<PackageVersion Include="Google.Protobuf" Version="3.28.2" />
@@ -43,6 +42,7 @@
4342
<PackageVersion Include="Serilog.AspNetCore" Version="6.1.0" />
4443
<PackageVersion Include="Serilog.Sinks.Console" Version="4.1.0" />
4544
<PackageVersion Include="Serilog.Sinks.File" Version="5.0.0" />
45+
<PackageVersion Include="Shouldly" Version="4.2.1" />
4646
<PackageVersion Include="System.Formats.Asn1" Version="6.0.1" />
4747
<PackageVersion Include="System.Text.Json" Version="6.0.10" />
4848
<PackageVersion Include="xunit" Version="2.9.2" />

test/Dapr.AI.Test/Dapr.AI.Test.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
88
<PrivateAssets>all</PrivateAssets>
99
</PackageReference>
10-
<PackageReference Include="FluentAssertions"/>
1110
<PackageReference Include="Microsoft.Extensions.Configuration" />
1211
<PackageReference Include="Microsoft.NET.Test.Sdk" />
1312
<PackageReference Include="xunit" />

test/Dapr.Actors.AspNetCore.IntegrationTest/Dapr.Actors.AspNetCore.IntegrationTest.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
55
<PrivateAssets>all</PrivateAssets>
66
</PackageReference>
7-
<PackageReference Include="FluentAssertions" />
87
<PackageReference Include="Microsoft.NET.Test.Sdk" />
98
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" />
109
<PackageReference Include="xunit" />

test/Dapr.Actors.AspNetCore.Test/Dapr.Actors.AspNetCore.Test.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1010
<PrivateAssets>all</PrivateAssets>
1111
</PackageReference>
12-
<PackageReference Include="FluentAssertions" />
1312
<PackageReference Include="Microsoft.AspNetCore.TestHost" />
1413
<PackageReference Include="Microsoft.NET.Test.Sdk" />
1514
<PackageReference Include="Moq" />

test/Dapr.Actors.Test/ActorCodeBuilderTests.cs

Lines changed: 30 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -11,44 +11,43 @@
1111
// limitations under the License.
1212
// ------------------------------------------------------------------------
1313

14-
namespace Dapr.Actors.Test
15-
{
16-
using System.Threading.Tasks;
17-
using Dapr.Actors.Builder;
18-
using Dapr.Actors.Communication;
19-
using Dapr.Actors.Description;
20-
using Dapr.Actors.Runtime;
21-
using Xunit;
14+
namespace Dapr.Actors.Test;
15+
16+
using System.Threading.Tasks;
17+
using Dapr.Actors.Builder;
18+
using Dapr.Actors.Communication;
19+
using Dapr.Actors.Description;
20+
using Dapr.Actors.Runtime;
21+
using Xunit;
2222

23+
/// <summary>
24+
/// Test class for Actor Code builder.
25+
/// </summary>
26+
public class ActorCodeBuilderTests
27+
{
2328
/// <summary>
24-
/// Test class for Actor Code builder.
29+
/// Tests Proxy Generation.
2530
/// </summary>
26-
public class ActorCodeBuilderTests
31+
[Fact]
32+
public void TestBuildActorProxyGenerator()
2733
{
28-
/// <summary>
29-
/// Tests Proxy Generation.
30-
/// </summary>
31-
[Fact]
32-
public void TestBuildActorProxyGenerator()
33-
{
34-
ActorCodeBuilder.GetOrCreateProxyGenerator(typeof(ITestActor));
35-
}
34+
ActorCodeBuilder.GetOrCreateProxyGenerator(typeof(ITestActor));
35+
}
3636

37-
[Fact]
38-
public async Task ActorCodeBuilder_BuildDispatcher()
39-
{
40-
var host = ActorHost.CreateForTest<TestActor>();
37+
[Fact]
38+
public async Task ActorCodeBuilder_BuildDispatcher()
39+
{
40+
var host = ActorHost.CreateForTest<TestActor>();
4141

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

45-
var impl = new TestActor(host);
46-
var request = new ActorRequestMessageBody(0);
47-
var response = new WrappedRequestMessageFactory();
45+
var impl = new TestActor(host);
46+
var request = new ActorRequestMessageBody(0);
47+
var response = new WrappedRequestMessageFactory();
4848

49-
var body = (WrappedMessage)await dispatcher.DispatchAsync(impl, methodId, request, response, default);
50-
dynamic bodyValue = body.Value;
51-
Assert.Equal(5, (int)bodyValue.retVal);
52-
}
49+
var body = (WrappedMessage)await dispatcher.DispatchAsync(impl, methodId, request, response, default);
50+
dynamic bodyValue = body.Value;
51+
Assert.Equal(5, (int)bodyValue.retVal);
5352
}
5453
}

0 commit comments

Comments
 (0)