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.
29 lines
692 B
29 lines
692 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.True(score.PlayerName == "test");
|
|
}
|
|
|
|
[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);
|
|
|
|
}
|
|
}
|
|
|