예제 #1
0
파일: UnitTest1.cs 프로젝트: Tigenzero/EBot
 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());
 }
예제 #2
0
파일: UnitTest1.cs 프로젝트: Tigenzero/EBot
 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());
 }
예제 #3
0
파일: UnitTest1.cs 프로젝트: Tigenzero/EBot
 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());
 }