From c25d3833bdaf53e5c2f2f276854a7a0b5f4848df Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Sat, 20 Sep 2025 16:42:35 +0000
Subject: [PATCH 1/2] Initial plan
From 599f126f79ea03f69b8037668c41f8d852c07ad2 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Sat, 20 Sep 2025 16:51:04 +0000
Subject: [PATCH 2/2] Update .NET dependencies to latest versions
Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com>
---
Directory.Build.props | 2 +-
IntelliTect.TestTools.Console.Tests/ConsoleAssertTests.cs | 4 ++--
.../IntelliTect.TestTools.Console.Tests.csproj | 7 +++----
.../StringExtensionsTests.cs | 6 ++++--
.../IntelliTect.TestTools.Console.csproj | 2 +-
5 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/Directory.Build.props b/Directory.Build.props
index 18da999..c1251b4 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -3,7 +3,7 @@
IntelliTect
Copyright IntelliTect © $([System.DateTime]::Now.ToString(`yyyy`)), All Rights Reserved.
en-US
- 10
+ 12
$(TESTTOOLS_VERSION_SUFFIX)
diff --git a/IntelliTect.TestTools.Console.Tests/ConsoleAssertTests.cs b/IntelliTect.TestTools.Console.Tests/ConsoleAssertTests.cs
index 157647b..e6c76b5 100644
--- a/IntelliTect.TestTools.Console.Tests/ConsoleAssertTests.cs
+++ b/IntelliTect.TestTools.Console.Tests/ConsoleAssertTests.cs
@@ -145,7 +145,7 @@ public void ConsoleTester_HelloWorld_DontNormalizeCRLF()
{
const string view = "Hello World\r\n";
- Assert.ThrowsException(() =>
+ Assert.ThrowsExactly(() =>
{
ConsoleAssert.Expect(view, () =>
{
@@ -160,7 +160,7 @@ public void ConsoleTester_HelloWorld_DontNormalizeCRLF()
[DataRow("+hello+world+")]
public void ConsoleTester_OutputIncludesPluses_PlusesAreNotStripped(string consoleInput)
{
- Exception exception = Assert.ThrowsException(() =>
+ Exception exception = Assert.ThrowsExactly(() =>
{
ConsoleAssert.Expect(consoleInput, () =>
{
diff --git a/IntelliTect.TestTools.Console.Tests/IntelliTect.TestTools.Console.Tests.csproj b/IntelliTect.TestTools.Console.Tests/IntelliTect.TestTools.Console.Tests.csproj
index b764e6c..85505d0 100644
--- a/IntelliTect.TestTools.Console.Tests/IntelliTect.TestTools.Console.Tests.csproj
+++ b/IntelliTect.TestTools.Console.Tests/IntelliTect.TestTools.Console.Tests.csproj
@@ -1,4 +1,3 @@
-
net9.0
@@ -7,9 +6,9 @@
-
-
-
+
+
+
diff --git a/IntelliTect.TestTools.Console.Tests/StringExtensionsTests.cs b/IntelliTect.TestTools.Console.Tests/StringExtensionsTests.cs
index c4cf507..e7ac6cd 100644
--- a/IntelliTect.TestTools.Console.Tests/StringExtensionsTests.cs
+++ b/IntelliTect.TestTools.Console.Tests/StringExtensionsTests.cs
@@ -39,11 +39,13 @@ public void IsLike_GivenLikeStringWithOverrideEscape_ReturnsTrue()
}
[TestMethod]
- [ExpectedException(typeof(ArgumentException))]
public void IsLike_GivenInvalideEscapeCharacter_Throws()
{
const string output = @"*3";
- Assert.IsTrue(output.IsLike(@"\3", '\\'));
+ Assert.ThrowsExactly(() =>
+ {
+ output.IsLike(@"\3", '\\');
+ });
}
}
\ No newline at end of file
diff --git a/IntelliTect.TestTools.Console/IntelliTect.TestTools.Console.csproj b/IntelliTect.TestTools.Console/IntelliTect.TestTools.Console.csproj
index c31509f..2329b98 100644
--- a/IntelliTect.TestTools.Console/IntelliTect.TestTools.Console.csproj
+++ b/IntelliTect.TestTools.Console/IntelliTect.TestTools.Console.csproj
@@ -26,6 +26,6 @@
-
+