Skip to content

Commit 5983743

Browse files
Update dependencies and enable parallel test execution
1 parent 571e6fd commit 5983743

126 files changed

Lines changed: 48 additions & 202 deletions

File tree

Some content is hidden

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

Engine/Internal/GenHTTP.Engine.Internal.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
<ProjectReference Include="..\..\Modules\IO\GenHTTP.Modules.IO.csproj" />
1717

18-
<PackageReference Include="System.IO.Pipelines" Version="9.0.9" />
18+
<PackageReference Include="System.IO.Pipelines" Version="9.0.10" />
1919

2020
</ItemGroup>
2121

Modules/Basics/GenHTTP.Modules.Basics.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<ProjectReference Include="..\..\API\GenHTTP.Api.csproj" />
1313

14-
<PackageReference Include="System.Text.Json" Version="9.0.9" />
14+
<PackageReference Include="System.Text.Json" Version="9.0.10" />
1515

1616
</ItemGroup>
1717

Modules/Caching/GenHTTP.Modules.Caching.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<ProjectReference Include="..\Basics\GenHTTP.Modules.Basics.csproj" />
1515

16-
<PackageReference Include="System.Text.Json" Version="9.0.9" />
16+
<PackageReference Include="System.Text.Json" Version="9.0.10" />
1717

1818
</ItemGroup>
1919

Modules/DependencyInjection/GenHTTP.Modules.DependencyInjection.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</ItemGroup>
2929

3030
<ItemGroup>
31-
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.9" />
31+
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.10" />
3232
</ItemGroup>
3333

3434
</Project>

Testing/Acceptance/Adapters/AspNetCore/IntegrationTests.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99

1010
using Microsoft.Extensions.Logging;
1111

12-
using Microsoft.VisualStudio.TestTools.UnitTesting;
13-
1412
namespace GenHTTP.Testing.Acceptance.Adapters.AspNetCore;
1513

1614
[TestClass]
@@ -131,10 +129,10 @@ private static async ValueTask<WebApplication> RunApplicationAsync(int port, Act
131129

132130
builder.Logging.ClearProviders();
133131

134-
builder.WebHost.ConfigureKestrel(options =>
132+
builder.WebHost.ConfigureKestrel(o =>
135133
{
136-
options.AllowSynchronousIO = true;
137-
options.Listen(IPAddress.Any, port);
134+
o.AllowSynchronousIO = true;
135+
o.Listen(IPAddress.Any, port);
138136
});
139137

140138
var app = builder.Build();

Testing/Acceptance/AssertX.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System.Net;
22
using System.Text;
3-
using Microsoft.VisualStudio.TestTools.UnitTesting;
43

54
namespace GenHTTP.Testing.Acceptance;
65

@@ -30,14 +29,10 @@ public static void DoesNotContain(string searchFor, string? content)
3029

3130
public static void EndsWith(string searchFor, string? content) => Assert.IsTrue(content?.EndsWith(searchFor) ?? false);
3231

33-
public static void Single<T>(IEnumerable<T> collection) => Assert.IsTrue(collection.Count() == 1);
32+
public static void Single<T>(IEnumerable<T> collection) => Assert.AreEqual(1, collection.Count());
3433

3534
public static void Empty<T>(IEnumerable<T>? collection) => Assert.IsFalse(collection?.Any() ?? false);
3635

37-
public static void Contains<T>(T value, IEnumerable<T> collection) => Assert.IsTrue(collection.Contains(value));
38-
39-
public static void DoesNotContain<T>(T value, IEnumerable<T> collection) => Assert.IsFalse(collection.Contains(value));
40-
4136
public static void IsNullOrEmpty(string? value) => Assert.IsTrue(string.IsNullOrEmpty(value));
4237

4338
/// <summary>
@@ -79,4 +74,5 @@ public static async Task AssertStatusAsync(this HttpResponseMessage response, Ht
7974
throw new AssertFailedException(builder.ToString());
8075
}
8176
}
77+
8278
}

Testing/Acceptance/Config.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[assembly: Parallelize]

Testing/Acceptance/Engine/BasicTests.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System.Net;
22
using GenHTTP.Modules.Layouting;
3-
using Microsoft.VisualStudio.TestTools.UnitTesting;
43

54
namespace GenHTTP.Testing.Acceptance.Engine;
65

@@ -51,7 +50,7 @@ public async Task TestConnectionClose(TestEngine engine)
5150
using var response = await runner.GetResponseAsync(request);
5251

5352
await response.AssertStatusAsync(HttpStatusCode.NotFound);
54-
Assert.IsTrue(response.Headers.Connection.Contains("Close"));
53+
Assert.Contains("Close", response.Headers.Connection);
5554
}
5655

5756
[TestMethod]
@@ -72,7 +71,7 @@ public async Task TestKeepalive()
7271

7372
using var response = await runner.GetResponseAsync();
7473

75-
Assert.IsTrue(response.Headers.Connection.Contains("Keep-Alive"));
74+
Assert.Contains("Keep-Alive", response.Headers.Connection);
7675
}
7776

7877
}

Testing/Acceptance/Engine/ChunkedContentTest.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System.Net;
22
using System.Net.Http.Json;
33
using GenHTTP.Modules.Functional;
4-
using Microsoft.VisualStudio.TestTools.UnitTesting;
54

65
namespace GenHTTP.Testing.Acceptance.Engine;
76

Testing/Acceptance/Engine/CompanionTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55

66
using GenHTTP.Modules.Layouting;
77

8-
using Microsoft.VisualStudio.TestTools.UnitTesting;
9-
108
namespace GenHTTP.Testing.Acceptance.Engine;
119

1210
[TestClass]

0 commit comments

Comments
 (0)