test
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
99a09fdb40
commit
9d22b46d0f
@ -0,0 +1,11 @@
|
||||
{
|
||||
"profiles": {
|
||||
"QwirkleConsoleApp": {
|
||||
"commandName": "Project"
|
||||
},
|
||||
"WSL": {
|
||||
"commandName": "WSL2",
|
||||
"distributionName": ""
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,42 @@
|
||||
using QwirkleClassLibrary;
|
||||
namespace TestBase;
|
||||
|
||||
public class TestScore
|
||||
{
|
||||
public static IEnumerable<object[]> Data_Score()
|
||||
{
|
||||
yield return new object[]
|
||||
{
|
||||
true,
|
||||
new Player("Test"),
|
||||
};
|
||||
yield return new object[]
|
||||
{
|
||||
false,
|
||||
null,
|
||||
};
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[MemberData(nameof(Data_Score))]
|
||||
public void Test_CellScoreConstructor(bool except, Player p)
|
||||
{
|
||||
if (!except)
|
||||
{
|
||||
Assert.Throws<ArgumentNullException>(() => new Score(p));
|
||||
return;
|
||||
}
|
||||
Score score = new Score(p);
|
||||
Assert.True(true);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in new issue