Creation de la solution et de la classe Match
This commit was merged in pull request #2.
This commit is contained in:
18
src/LittleTown.Core.Tests/MatchTesting.cs
Normal file
18
src/LittleTown.Core.Tests/MatchTesting.cs
Normal 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); });
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user