Skip to content

Commit df4d173

Browse files
authored
Merge pull request #6 from vorobalek/dependabot/nuget/multi-85956f1696
Bump MSTest and 3 others
2 parents 512bb56 + 838edc5 commit df4d173

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

Directory.Packages.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
<PackageVersion Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.7" />
1010
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
1111
<PackageVersion Include="Moq" Version="4.20.72" />
12-
<PackageVersion Include="MSTest" Version="3.9.3" />
12+
<PackageVersion Include="MSTest" Version="3.10.0" />
1313
<PackageVersion Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="9.0.4" />
1414
<PackageVersion Include="prometheus-net.AspNetCore" Version="8.2.1" />
15-
<PackageVersion Include="Sentry.AspNetCore" Version="5.12.0" />
15+
<PackageVersion Include="Sentry.AspNetCore" Version="5.13.0" />
1616
<PackageVersion Include="SkiaSharp.NativeAssets.Linux.NoDependencies" Version="3.116.1" />
17-
<PackageVersion Include="StackExchange.Redis" Version="2.8.41" />
17+
<PackageVersion Include="StackExchange.Redis" Version="2.8.58" />
1818
<PackageVersion Include="Telegram.Bot" Version="22.6.0" />
1919
<PackageVersion Include="Telegram.Bot.AspNetCore" Version="22.5.0" />
2020
<PackageVersion Include="TR.LPlus" Version="0.0.2-202502051717" />

tests/Quizitor.Api.Tests/Middleware/ExceptionHandlerMiddlewareTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public async Task InvokeAsync_TokenThrowsException_NoCaptures()
113113
.Verifiable(Times.Never);
114114

115115

116-
var result = await Assert.ThrowsExceptionAsync<Exception>(async () => await
116+
var result = await Assert.ThrowsExactlyAsync<Exception>(async () => await
117117
new ExceptionHandlerMiddleware(
118118
httpContextRequestBodyReader.Object,
119119
httpContextRequestCollector.Object,
@@ -180,7 +180,7 @@ public async Task InvokeAsync_ReaderThrowsException_NoCaptures()
180180
.Verifiable(Times.Never);
181181

182182

183-
var result = await Assert.ThrowsExceptionAsync<Exception>(async () => await
183+
var result = await Assert.ThrowsExactlyAsync<Exception>(async () => await
184184
new ExceptionHandlerMiddleware(
185185
httpContextRequestBodyReader.Object,
186186
httpContextRequestCollector.Object,
@@ -332,7 +332,7 @@ public async Task InvokeAsync_NextAndCollectThrowException_NoCaptures()
332332
.Verifiable(Times.Never);
333333

334334

335-
var result = await Assert.ThrowsExceptionAsync<Exception>(async () => await
335+
var result = await Assert.ThrowsExactlyAsync<Exception>(async () => await
336336
new ExceptionHandlerMiddleware(
337337
httpContextRequestBodyReader.Object,
338338
httpContextRequestCollector.Object,
@@ -413,7 +413,7 @@ public async Task InvokeAsync_NextAndCaptureThrowException_NoCaptures()
413413
.Verifiable(Times.Once);
414414

415415

416-
var result = await Assert.ThrowsExceptionAsync<Exception>(async () => await
416+
var result = await Assert.ThrowsExactlyAsync<Exception>(async () => await
417417
new ExceptionHandlerMiddleware(
418418
httpContextRequestBodyReader.Object,
419419
httpContextRequestCollector.Object,

tests/Quizitor.Api.Tests/Services/HttpContext/RequestBodyReader/HttpContextRequestBodyReaderTests.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ public void NonSeekableStream_Tests()
4747
Assert.AreEqual(innerStream.CanRead, nonSeekableStream.CanRead);
4848
Assert.IsFalse(nonSeekableStream.CanSeek);
4949
Assert.AreEqual(innerStream.CanWrite, nonSeekableStream.CanWrite);
50-
Assert.ThrowsException<NotSupportedException>(() => nonSeekableStream.Length);
51-
Assert.ThrowsException<NotSupportedException>(() => nonSeekableStream.Position);
52-
Assert.ThrowsException<NotSupportedException>(() => nonSeekableStream.Position = 0);
53-
Assert.ThrowsException<NotSupportedException>(() => nonSeekableStream.Seek(0, SeekOrigin.Begin));
54-
Assert.ThrowsException<NotSupportedException>(() => nonSeekableStream.SetLength(0));
50+
Assert.ThrowsExactly<NotSupportedException>(() => nonSeekableStream.Length);
51+
Assert.ThrowsExactly<NotSupportedException>(() => nonSeekableStream.Position);
52+
Assert.ThrowsExactly<NotSupportedException>(() => nonSeekableStream.Position = 0);
53+
Assert.ThrowsExactly<NotSupportedException>(() => nonSeekableStream.Seek(0, SeekOrigin.Begin));
54+
Assert.ThrowsExactly<NotSupportedException>(() => nonSeekableStream.SetLength(0));
5555
}
5656

5757
private class NonSeekableStream(Stream inner) : Stream

tests/Quizitor.Common.Tests/EnvironmentExtensionsTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public void GetEnvironmentVariableOrThrowIfNullOrWhiteSpace_VariableIsEmpty_Thro
5353
Environment.SetEnvironmentVariable(variableName, variableValue);
5454

5555

56-
Assert.ThrowsException<ArgumentNullException>(
56+
Assert.ThrowsExactly<ArgumentNullException>(
5757
() => variableName.GetEnvironmentVariableOrThrowIfNullOrWhiteSpace(),
5858
$"Environment variable '{variableName}' is not defined.");
5959
}
@@ -66,7 +66,7 @@ public void GetEnvironmentVariableOrThrowIfNullOrWhiteSpace_VariableIsWhiteSpace
6666
Environment.SetEnvironmentVariable(variableName, variableValue);
6767

6868

69-
Assert.ThrowsException<ArgumentNullException>(
69+
Assert.ThrowsExactly<ArgumentNullException>(
7070
() => variableName.GetEnvironmentVariableOrThrowIfNullOrWhiteSpace(),
7171
$"Environment variable '{variableName}' is not defined.");
7272
}
@@ -77,7 +77,7 @@ public void GetEnvironmentVariableOrThrowIfNullOrWhiteSpace_VariableNotExists_Th
7777
var variableName = Unique.String();
7878

7979

80-
Assert.ThrowsException<ArgumentNullException>(
80+
Assert.ThrowsExactly<ArgumentNullException>(
8181
() => variableName.GetEnvironmentVariableOrThrowIfNullOrWhiteSpace(),
8282
$"Environment variable '{variableName}' is not defined.");
8383
}

0 commit comments

Comments
 (0)