Skip to content

Commit 159ae9f

Browse files
fix: Fix broken test and update .Tests to .net 9.0 (#76)
* Initial plan * Initial analysis and plan for fixing .NET test errors Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com> * Fix .NET test errors by upgrading to net6.0 target framework Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com> * Delete :GITHUB_ENV * Update IntelliTect.TestTools.Console.Tests/IntelliTect.TestTools.Console.Tests.csproj * Change default .NET version to 9.x Updated default .NET versions to 9.x. * Fix expected output format for Linux ping test in ConsoleAssertTests --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com> Co-authored-by: Benjamin Michaelis <benjamin@michaelis.net>
1 parent 7c054d4 commit 159ae9f

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

.github/actions/setup-dotnet-build/action.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ inputs:
55
description: '.NET versions to install'
66
required: false
77
default: |
8-
3.1.x
9-
6.x
8+
9.x
109
configuration:
1110
description: 'Build configuration'
1211
required: false
@@ -30,4 +29,4 @@ runs:
3029

3130
- name: Build
3231
run: dotnet build --configuration ${{ inputs.configuration }} ${{ inputs.build-args }}
33-
shell: pwsh
32+
shell: pwsh

IntelliTect.TestTools.Console.Tests/ConsoleAssertTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public void ExecuteProcess_PingLocalhost_Success()
195195
}
196196
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
197197
{
198-
expected = $@"PING *(* (::1)) 56 data bytes
198+
expected = $@"PING *(::1) 56 data bytes
199199
64 bytes from * (::1): icmp_seq=1 ttl=64 time=* ms*";
200200
}
201201
else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-16"?>
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
4-
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.1</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
5+
66
<ProductName>IntelliTect.TestTools.Console.Tests</ProductName>
77
</PropertyGroup>
88

0 commit comments

Comments
 (0)