Switch players after move, can only roll dice once, and other improvements

This commit is contained in:
Martin Berg Alstad
2023-07-16 12:10:53 +02:00
parent 8d8a606fb8
commit 373f08609d
12 changed files with 124 additions and 46 deletions

View File

@ -196,4 +196,23 @@ public class GameGroupTests
}
#endregion
#region IsGameStarted()
[Test]
public void IsGameStarted_AllWaiting()
{
AddFullParty();
Assert.That(_gameGroup.IsGameStarted, Is.False);
}
[Test]
public void IsGameStarted_AllInGame()
{
AddFullParty();
_gameGroup.Players.ForEach(player => player.State = State.InGame);
Assert.That(_gameGroup.IsGameStarted, Is.True);
}
#endregion
}