Skip to content

Commit c0396c6

Browse files
Update to .NET 7 RC2
Update to release candidate 2 of .NET 7.
1 parent e28e3bb commit c0396c6

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

Directory.Packages.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<PackageVersion Include="GitHubActionsTestLogger" Version="2.0.1" />
66
<PackageVersion Include="MarkdownSnippets.MsBuild" Version="24.5.0" />
77
<PackageVersion Include="MartinCostello.Logging.XUnit" Version="0.3.0" />
8-
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="7.0.0-rc.1.22427.2" />
8+
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="7.0.0-rc.2.22476.2" />
99
<PackageVersion Include="Microsoft.AspNetCore.WebUtilities" Version="2.2.0" />
1010
<PackageVersion Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="3.3.3" />
1111
<PackageVersion Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" />
@@ -29,7 +29,7 @@
2929
<PackageVersion Update="System.Text.Json" Version="6.0.0" />
3030
</ItemGroup>
3131
<ItemGroup Condition=" '$(AssemblyName)' != 'JustEat.HttpClientInterception' ">
32-
<PackageVersion Update="System.Text.Json" Version="7.0.0-rc.1.22426.10" />
32+
<PackageVersion Update="System.Text.Json" Version="7.0.0-rc.2.22472.3" />
3333
</ItemGroup>
3434
<ItemGroup>
3535
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" PrivateAssets="All" />

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "7.0.100-rc.1.22431.12",
3+
"version": "7.0.100-rc.2.22477.23",
44
"allowPrerelease": false,
55
"rollForward": "latestMajor"
66
}

tests/HttpClientInterception.Tests/HttpRequestInterceptionBuilderTests.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ public static async Task Builder_For_Raw_Bytes_Registers_Interception_Synchronou
229229

230230
var builder = new HttpRequestInterceptionBuilder()
231231
.ForUrl(requestUri)
232-
.WithContent(() => new byte[] { 46, 78, 69, 84 });
232+
.WithContent(() => ".NET"u8.ToArray());
233233

234234
var options = new HttpClientInterceptorOptions().Register(builder);
235235

@@ -248,7 +248,7 @@ public static async Task Builder_For_Raw_Bytes_Clears_Content()
248248

249249
var builder = new HttpRequestInterceptionBuilder()
250250
.ForUrl(requestUri)
251-
.WithContent(() => new byte[] { 46, 78, 69, 84 })
251+
.WithContent(() => ".NET"u8.ToArray())
252252
.WithContent((Func<byte[]>)null)
253253
.WithContent((Func<Task<byte[]>>)null);
254254

@@ -269,8 +269,8 @@ public static async Task Builder_For_Raw_Bytes_Registers_Interception_Asynchrono
269269

270270
var builder = new HttpRequestInterceptionBuilder()
271271
.ForUrl(requestUri)
272-
.WithContentStream(() => Task.FromResult<Stream>(new MemoryStream(new byte[] { 84, 69, 78, 46 })))
273-
.WithContent(() => Task.FromResult(new byte[] { 46, 78, 69, 84 }));
272+
.WithContentStream(() => Task.FromResult<Stream>(new MemoryStream(".NET"u8.ToArray())))
273+
.WithContent(() => Task.FromResult(".NET"u8.ToArray()));
274274

275275
var options = new HttpClientInterceptorOptions().Register(builder);
276276

@@ -289,7 +289,7 @@ public static async Task Builder_For_Stream_Registers_Interception_Synchronous()
289289

290290
var builder = new HttpRequestInterceptionBuilder()
291291
.ForUrl(requestUri)
292-
.WithContentStream(() => new MemoryStream(new byte[] { 46, 78, 69, 84 }));
292+
.WithContentStream(() => new MemoryStream(".NET"u8.ToArray()));
293293

294294
var options = new HttpClientInterceptorOptions().Register(builder);
295295

@@ -308,7 +308,7 @@ public static async Task Builder_For_Stream_Clears_Stream()
308308

309309
var builder = new HttpRequestInterceptionBuilder()
310310
.ForUrl(requestUri)
311-
.WithContentStream(() => new MemoryStream(new byte[] { 46, 78, 69, 84 }))
311+
.WithContentStream(() => new MemoryStream(".NET"u8.ToArray()))
312312
.WithContentStream((Func<Stream>)null)
313313
.WithContentStream((Func<Task<Stream>>)null);
314314

@@ -329,8 +329,8 @@ public static async Task Builder_For_Stream_Registers_Interception_Asynchronous(
329329

330330
var builder = new HttpRequestInterceptionBuilder()
331331
.ForUrl(requestUri)
332-
.WithContent(() => Task.FromResult(new byte[] { 84, 69, 78, 46 }))
333-
.WithContentStream(() => Task.FromResult<Stream>(new MemoryStream(new byte[] { 46, 78, 69, 84 })));
332+
.WithContent(() => Task.FromResult(".NET"u8.ToArray()))
333+
.WithContentStream(() => Task.FromResult<Stream>(new MemoryStream(".NET"u8.ToArray())));
334334

335335
var options = new HttpClientInterceptorOptions().Register(builder);
336336

0 commit comments

Comments
 (0)