Creation de la solution et de la classe Match

This commit was merged in pull request #2.
This commit is contained in:
2024-05-20 22:50:42 +02:00
parent 0b1fd87037
commit 9567423195
10 changed files with 138 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
namespace LittleTown.Core.Tests;
public class MatchTesting
{
[Fact]
public void EnforcePlayerCountInMatchCreation()
{
Assert.Throws<ArgumentOutOfRangeException>(() => { new Match(1); });
Match match2Player = new Match(2);
Match match3Player = new Match(3);
Match match4Player = new Match(4);
Assert.Throws<ArgumentOutOfRangeException>(() => { new Match(5); });
}
}