public void Traveler_CoinsOverflow() { Traveler traveler = new Traveler(); traveler.AddCoins(int.MaxValue); traveler.AddCoins(1); Assert.AreEqual(traveler.Coins, int.MaxValue); }
public void AddCoins_Coins_UpdatedCoins() { Traveler traveler = new Traveler(); traveler.AddCoins(10); int result = 10; Assert.AreEqual(traveler.Coins, result); }
public override void Host(Traveler player) { player.AddCoins(3); }