Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Company>IntelliTect</Company>
<Copyright>Copyright IntelliTect © $([System.DateTime]::Now.ToString(`yyyy`)), All Rights Reserved.</Copyright>
<DefaultLanguage>en-US</DefaultLanguage>
<LangVersion>10</LangVersion>
<LangVersion>12</LangVersion>

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

Expand Down
4 changes: 2 additions & 2 deletions IntelliTect.TestTools.Console.Tests/ConsoleAssertTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public void ConsoleTester_HelloWorld_DontNormalizeCRLF()
{
const string view = "Hello World\r\n";

Assert.ThrowsException<Exception>(() =>
Assert.ThrowsExactly<Exception>(() =>
{
ConsoleAssert.Expect(view, () =>
{
Expand All @@ -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 exception = Assert.ThrowsExactly<Exception>(() =>
{
ConsoleAssert.Expect(consoleInput, () =>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?xml version="1.0" encoding="utf-16"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
Expand All @@ -7,9 +6,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="MSTest.TestAdapter" Version="1.3.2" />
<PackageReference Include="MSTest.TestFramework" Version="1.3.2" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
<PackageReference Include="MSTest.TestAdapter" Version="3.10.4" />
<PackageReference Include="MSTest.TestFramework" Version="3.10.4" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\IntelliTect.TestTools.Console\IntelliTect.TestTools.Console.csproj" />
Expand Down
6 changes: 4 additions & 2 deletions IntelliTect.TestTools.Console.Tests/StringExtensionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<ArgumentException>(() =>
{
output.IsLike(@"\3", '\\');
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="System.CodeDom" Version="9.0.6" />
<PackageReference Include="System.CodeDom" Version="9.0.9" />
</ItemGroup>
</Project>
Loading