diff --git a/Qwirkle/TestBase/TestScore.cs b/Qwirkle/TestBase/TestScore.cs index b8a357d..bc60dd4 100644 --- a/Qwirkle/TestBase/TestScore.cs +++ b/Qwirkle/TestBase/TestScore.cs @@ -3,29 +3,15 @@ namespace TestBase; public class TestScore { - [Theory] - [InlineData(false)] - //[InlineData(true)] - public void Test_CellScoreConstructor(bool except) + [Fact] + public void Test_CellScoreConstructor() { - if (!except) - { - Assert.Throws(() => new Score(null)); - return; - } - - Player? p = new Player("test"); - Score score = new Score(p); - Assert.True(true); - } - - - - - - - + Player p = new Player("test"); + DateTime now = DateTime.Today; + Score score = new Score(p.NameTag, now, 0, 0); + Assert.True(score.PlayerName == "test"); + } }