public void Robot_PickupToxicCargo() { var c = new ToxicCargoMoq(); c.SetToxicity(true); rob.SetBackpack(new List <AbstractCargo>()); rob.SetBatteryCustom(1000); rob.SetPickPrice(1); trobDec.PickupCargo(c); Assert.IsTrue(trobDec.Battery == 994); }
public void Robot_ActionMove(int battery, int expected) { var c = new ToxicCargoMoq(); c.SetToxicity(true); rob.SetPickPrice(1); rob.SetMovePrice(1); rob.SetPosX(10); rob.SetPosY(10); trobDec.SetBatteryCustom(battery); trobDec.PickupCargo(c); trobDec.ActionMoveLeft(); Assert.IsTrue(trobDec.Battery == expected); }