From 12a19b46c534871ff48906b69618b298bafc07e5 Mon Sep 17 00:00:00 2001 From: McSchneidar Date: Thu, 19 Mar 2026 19:52:19 +0100 Subject: [PATCH] Fix for 2 build errors (non-blocking) (#846) * Adapt Number of Rounds Test to used logic * Add BindingRedirects * Add BindingRedirects --- .../CPartyModeChallangeTest.cs | 6 +++--- Tests/Tests.csproj | 6 +++++- Tests/app.config | 18 ++++++++++++++++++ 3 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 Tests/app.config diff --git a/Tests/PartyModeChallenge/CPartyModeChallangeTest.cs b/Tests/PartyModeChallenge/CPartyModeChallangeTest.cs index 502a16f1..507df1c6 100644 --- a/Tests/PartyModeChallenge/CPartyModeChallangeTest.cs +++ b/Tests/PartyModeChallenge/CPartyModeChallangeTest.cs @@ -1,4 +1,4 @@ -#region license +#region license // This file is part of Vocaluxe. // // Vocaluxe is free software: you can redistribute it and/or modify @@ -60,8 +60,8 @@ namespace Tests.PartyModeChallenge CChallengeRounds rounds = new CChallengeRounds(numRounds, numPlayer, numMic); Assert.IsTrue(rounds.Count >= numRounds); _CheckRounds(rounds, numPlayer); - Warn.If(rounds.Count != numRounds, - $"Number of rounds does not match. Expected: {numRounds}, Is: {rounds.Count} for {numPlayer}/{((numPlayer < numMic) ? numPlayer : numMic)}"); + Assert.That(rounds.Count, Is.GreaterThanOrEqualTo(numRounds), + $"Number of rounds should be >= {numRounds}, is {rounds.Count} for {numPlayer}/{numMic}"); } } diff --git a/Tests/Tests.csproj b/Tests/Tests.csproj index 9be7ba45..2bb83943 100644 --- a/Tests/Tests.csproj +++ b/Tests/Tests.csproj @@ -1,4 +1,4 @@ - + @@ -15,6 +15,10 @@ + + true + true + true full diff --git a/Tests/app.config b/Tests/app.config new file mode 100644 index 00000000..dcd3c5a2 --- /dev/null +++ b/Tests/app.config @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + +