public void TestSetSize() { BaseGamePiece TestCard = new BaseGamePiece( 20, 20, 0, 0, 0); TestCard.SetSize(10, 10); Assert.IsTrue(TestCard.GetHeight() == 10); Assert.IsTrue(TestCard.GetWidth() == 10); }
public void TestSetSize3() { BaseGamePiece TestCard = new BaseGamePiece(20, 20, 0, 0, 0); Assert.Throws<ArgumentException>(delegate { TestCard.SetSize(10, -10); }); }