You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sae201_qwirkle/Qwirkle/TestBase/TestScore.cs

29 lines
691 B

using QwirkleClassLibrary.Players;
using static System.Runtime.InteropServices.JavaScript.JSType;
namespace TestBase;
public class TestScore
{
[Fact]
public void Test_CellScoreConstructor()
{
Player p = new Player("test");
DateTime now = DateTime.Today;
Score score = new Score(p.NameTag, now, 0, 0);
Assert.Equal("test", score.PlayerName);
}
[Fact]
public void Test_ScoreString()
{
Player p = new Player("test");
DateTime now = DateTime.Today;
Score score = new Score(p.NameTag, now, 0, 0);
Assert.Equal(score.ToString(), p.NameTag + " / " + now.ToString() + " / " + 0 + " / " + 0);
}
}