public void TestDebitMoney() { int DebitTest = 400; EBot.Player player = new EBot.Player(); Assert.IsTrue(player.DebitMoney(DebitTest)); Assert.AreEqual(player.START_MONEY - DebitTest, player.GetMoney()); }
public void TestInit() { EBot.Player player = new EBot.Player(); Assert.AreEqual(player.START_MONEY, player.GetMoney()); Assert.AreEqual("100.100.100.1", player.GetIP()); Assert.AreEqual(1, player.GetLastConnection()); }
public void TestCreditMoney() { //Test Credit Money EBot.Player player = new EBot.Player(); int Credit = 100; player.CreditMoney(Credit); Assert.AreEqual(Credit + player.START_MONEY, player.GetMoney()); }