From 923544b4827f7129a3ef94ccf9ecacf03a564052 Mon Sep 17 00:00:00 2001 From: "jeremy.mouyon" Date: Fri, 17 May 2024 19:50:18 +0200 Subject: [PATCH] hot fix (oups) --- Qwirkle/TestBase/TestScore.cs | 28 +++++++--------------------- 1 file changed, 7 insertions(+), 21 deletions(-) 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"); + } }