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 @@ + + + + + + + + + + + + + + + + + +