Skip to content

Commit 599f126

Browse files
Update .NET dependencies to latest versions
Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com>
1 parent c25d383 commit 599f126

5 files changed

Lines changed: 11 additions & 10 deletions

File tree

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Company>IntelliTect</Company>
44
<Copyright>Copyright IntelliTect © $([System.DateTime]::Now.ToString(`yyyy`)), All Rights Reserved.</Copyright>
55
<DefaultLanguage>en-US</DefaultLanguage>
6-
<LangVersion>10</LangVersion>
6+
<LangVersion>12</LangVersion>
77

88
<VersionSuffix Condition=" '$(TESTTOOLS_VERSION_SUFFIX)' != '' ">$(TESTTOOLS_VERSION_SUFFIX)</VersionSuffix>
99

IntelliTect.TestTools.Console.Tests/ConsoleAssertTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public void ConsoleTester_HelloWorld_DontNormalizeCRLF()
145145
{
146146
const string view = "Hello World\r\n";
147147

148-
Assert.ThrowsException<Exception>(() =>
148+
Assert.ThrowsExactly<Exception>(() =>
149149
{
150150
ConsoleAssert.Expect(view, () =>
151151
{
@@ -160,7 +160,7 @@ public void ConsoleTester_HelloWorld_DontNormalizeCRLF()
160160
[DataRow("+hello+world+")]
161161
public void ConsoleTester_OutputIncludesPluses_PlusesAreNotStripped(string consoleInput)
162162
{
163-
Exception exception = Assert.ThrowsException<Exception>(() =>
163+
Exception exception = Assert.ThrowsExactly<Exception>(() =>
164164
{
165165
ConsoleAssert.Expect(consoleInput, () =>
166166
{

IntelliTect.TestTools.Console.Tests/IntelliTect.TestTools.Console.Tests.csproj

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<?xml version="1.0" encoding="utf-16"?>
21
<Project Sdk="Microsoft.NET.Sdk">
32
<PropertyGroup>
43
<TargetFramework>net9.0</TargetFramework>
@@ -7,9 +6,9 @@
76
</PropertyGroup>
87

98
<ItemGroup>
10-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
11-
<PackageReference Include="MSTest.TestAdapter" Version="1.3.2" />
12-
<PackageReference Include="MSTest.TestFramework" Version="1.3.2" />
9+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
10+
<PackageReference Include="MSTest.TestAdapter" Version="3.10.4" />
11+
<PackageReference Include="MSTest.TestFramework" Version="3.10.4" />
1312
</ItemGroup>
1413
<ItemGroup>
1514
<ProjectReference Include="..\IntelliTect.TestTools.Console\IntelliTect.TestTools.Console.csproj" />

IntelliTect.TestTools.Console.Tests/StringExtensionsTests.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@ public void IsLike_GivenLikeStringWithOverrideEscape_ReturnsTrue()
3939
}
4040

4141
[TestMethod]
42-
[ExpectedException(typeof(ArgumentException))]
4342
public void IsLike_GivenInvalideEscapeCharacter_Throws()
4443
{
4544
const string output = @"*3";
4645

47-
Assert.IsTrue(output.IsLike(@"\3", '\\'));
46+
Assert.ThrowsExactly<ArgumentException>(() =>
47+
{
48+
output.IsLike(@"\3", '\\');
49+
});
4850
}
4951
}

IntelliTect.TestTools.Console/IntelliTect.TestTools.Console.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
</ItemGroup>
2727

2828
<ItemGroup>
29-
<PackageReference Include="System.CodeDom" Version="9.0.6" />
29+
<PackageReference Include="System.CodeDom" Version="9.0.9" />
3030
</ItemGroup>
3131
</Project>

0 commit comments

Comments
 (0)