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.
21 lines
495 B
21 lines
495 B
using QwirkleClassLibrary;
|
|
namespace TestBase;
|
|
|
|
public class TestCell
|
|
{
|
|
[Theory]
|
|
[InlineData(true, 10, 20, 10, 20)]
|
|
[InlineData(false, -10, 20, -10, 20)]
|
|
|
|
public void Test_CellConstructor(bool isValid, int expectedX, int expectedY, int x, int y)
|
|
{
|
|
if (!isValid)
|
|
{
|
|
Assert.Throws<ArgumentException>(() => new Cell(x, y));
|
|
}
|
|
|
|
Cell c = new Cell(x, y);
|
|
Assert.Equal(expectedX, x);
|
|
Assert.Equal(expectedY, y);
|
|
}
|
|
} |