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 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 TestConnectPass() { EBot.Player player = new EBot.Player(); EBot.Machine selectedMachine = CreateMachine(true); player.Select(selectedMachine); player.Connect(); }
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()); }
public void TestJumpPass() { //Test Jumping EBot.Player player = new EBot.Player(); EBot.Machine selectedMachine = CreateMachine(true); player.Select(selectedMachine); Assert.IsTrue(player.Jump()); Assert.AreEqual(selectedMachine.GetIp(), player.GetIP()); }
public void TestJumpFailNotHacked() { //Test Jumping EBot.Player player = new EBot.Player(); //int Id, string Ip, bool Connected, string Name, bool Hacked EBot.Machine SelectedMachine = CreateMachine(); player.Select(SelectedMachine); Assert.IsFalse(player.Jump()); }
public void TestJumpFailnull() { //Test Jumping EBot.Player player = new EBot.Player(); Assert.IsFalse(player.Jump()); }
public void TestInit2() { //Test Init of Player Class EBot.Player player = new EBot.Player(); }