Skip to content

Commit

Permalink
Update tests and scripts for .NET 9.0 compatibility
Browse files Browse the repository at this point in the history
Modified OnlinerBaseTypeTests.cs to use Is.InstanceOf for more accurate type checking in GetParentTest. Updated test_L10.ps1 and test_L2.ps1 scripts to run with --framework net9.0 and exit with $LASTEXITCODE for improved build and test processes.
  • Loading branch information
PTKu committed Nov 28, 2024
1 parent f7eb4b0 commit d850f30
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public void GetSymbolTailTest()
[Test()]
public void GetParentTest()
{
Assert.That(Onliner.GetParent(), Is.EqualTo(typeof(ITwinObject)));
Assert.That(Onliner.GetParent(), Is.InstanceOf(typeof(ITwinObject)));
}


Expand Down
2 changes: 1 addition & 1 deletion test_L10.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# run build

dotnet run --project cake/Build.csproj --do-test --test-level 10
dotnet run --project cake/Build.csproj --do-test --test-level 10 --framework net9.0
exit $LASTEXITCODE;
2 changes: 1 addition & 1 deletion test_L2.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# run build

dotnet run --project cake/Build.csproj --do-test --do-pack --test-level 2
dotnet run --project cake/Build.csproj --do-test --do-pack --test-level 2 --framework net9.0
exit $LASTEXITCODE;

0 comments on commit d850f30

Please sign in to comment.