public void DecryptionStoneTest() { Stone stone = new ValuableStone(5); stone = new DecryptionStone(stone); Assert.AreEqual(stone.GetInfo(), "Cost: " + 12.5 + ", weight: " + 5 + ", description: Valuable stone, need to be decrypted"); Assert.AreEqual(stone.Weight, 5); Assert.AreEqual(stone.StoneHealth, 0); Assert.AreEqual(stone.Collapses, false); Assert.AreEqual(stone.Decryption, true); Assert.AreEqual(stone.GetCost(), stone.Weight * 2.5); Assert.AreEqual(stone.Damage, 0); Assert.AreEqual(stone.Description, "Valuable stone, need to be decrypted"); }
public void DecryptionPoisonedStoneTest() { Stone stone = new ValuableStone(5); stone = new PoisonedStone(5, stone); stone = new DecryptionStone(stone); Assert.AreEqual(stone.GetInfo(), "Cost: " + 25 + ", weight: " + 5 + ", description: Valuable stone" + ", will harm on every turn (ciborgs only), need to be decrypted, damage: " + 5); Assert.AreEqual(stone.Weight, 5); Assert.AreEqual(stone.StoneHealth, 0); Assert.AreEqual(stone.Collapses, false); Assert.AreEqual(stone.Decryption, true); Assert.AreEqual(stone.GetCost(), stone.Weight * 5); Assert.AreEqual(stone.Damage, 5); Assert.AreEqual(stone.Description, "Valuable stone, will harm on every turn (ciborgs only), need to be decrypted"); }
public void DecryptionCollapsedStoneTest() { Stone stone = new ValuableStone(5); stone = new CollapseStone(5, stone); stone = new DecryptionStone(stone); Assert.AreEqual(stone.GetInfo(), "Cost: " + 18.75 + ", weight: " + 5 + ", description: Valuable stone" + ", will destroy on every turn, need to be decrypted, stone health: " + 5); Assert.AreEqual(stone.Weight, 5); Assert.AreEqual(stone.StoneHealth, 5); Assert.AreEqual(stone.Collapses, true); Assert.AreEqual(stone.Decryption, true); Assert.AreEqual(stone.GetCost(), stone.Weight * 3.75); Assert.AreEqual(stone.Damage, 0); Assert.AreEqual(stone.Description, "Valuable stone, will destroy on every turn, need to be decrypted"); stone.DecreaseHealth(); Assert.AreEqual(stone.StoneHealth, 4); }
public void CollapsedPoisonedDecryptionStone() { Stone stone = new ValuableStone(5); stone = new CollapseStone(5, stone); stone = new PoisonedStone(5, stone); stone = new DecryptionStone(stone); Assert.AreEqual(stone.GetInfo(), "Cost: " + 37.5 + ", weight: " + 5 + ", description: Valuable stone" + ", will destroy on every turn, will harm on every turn (ciborgs only), need to be decrypted, stone health: " + 5 + ", damage: " + 5); Assert.AreEqual(stone.Weight, 5); Assert.AreEqual(stone.StoneHealth, 5); Assert.AreEqual(stone.Collapses, true); Assert.AreEqual(stone.Decryption, true); Assert.AreEqual(stone.GetCost(), stone.Weight * 7.5); Assert.AreEqual(stone.Damage, 5); Assert.AreEqual(stone.Description, "Valuable stone, will destroy on every turn, will harm on every turn (ciborgs only), need to be decrypted"); stone.DecreaseHealth(); Assert.AreEqual(stone.StoneHealth, 4); }