public void CardFieldLocation() { var field = BattlefieldTest.CreateField(); var card = new TankLight(); Assert.IsTrue(card.GetLocation().IsNowhere()); Assert.IsFalse(card.GetLocation().IsForefront()); Assert.IsFalse(card.GetLocation().IsBattlefield()); Assert.AreEqual(null, card.GetFieldLocation().GetCell()); card.GetFieldLocation().ToCell(field.GetCell(2, 1)); Assert.AreEqual(field.GetCell(2, 1), card.GetFieldLocation().GetCell()); Assert.IsFalse(card.GetLocation().IsNowhere()); Assert.IsTrue(card.GetLocation().IsForefront()); Assert.IsTrue(card.GetLocation().IsBattlefield()); card.GetFieldLocation().ToCell(field.GetCell(3, 2)); Assert.AreEqual(field.GetCell(3, 2), card.GetFieldLocation().GetCell()); Assert.AreEqual(card, field.GetCell(3, 2).GetCard()); }
public void CardBaseLocation() { var card = new TankLight(); Assert.IsTrue(card.GetLocation().IsNowhere()); Assert.IsFalse(card.GetLocation().IsForefront()); card.GetLocation().ToDeck(); Assert.IsFalse(card.GetLocation().IsNowhere()); Assert.IsFalse(card.GetLocation().IsForefront()); Assert.IsTrue(card.GetLocation().IsDeck()); card.GetLocation().ToReserve(); Assert.IsFalse(card.GetLocation().IsDeck()); Assert.IsFalse(card.GetLocation().IsForefront()); Assert.IsTrue(card.GetLocation().IsReserve()); card.GetLocation().ToGraveyard(); Assert.IsFalse(card.GetLocation().IsReserve()); Assert.IsFalse(card.GetLocation().IsForefront()); Assert.IsTrue(card.GetLocation().IsGraveyard()); Assert.IsTrue(card.IsDead()); }