public void WillGetHitsNoParam() { _player.Hits = 100; int val = MobileCommands.Hits(); Assert.AreEqual(100, val); _player.Hits = 0; }
public void WillGetHitsSerialParam() { Mobile mobile = new Mobile(2) { Hits = 200 }; Engine.Mobiles.Add(mobile); int val = MobileCommands.Hits(mobile.Serial); Assert.AreEqual(200, val); Engine.Mobiles.Remove(mobile); }
public void WillGetHitsStringParam() { Mobile mobile = new Mobile(2) { Hits = 250 }; Engine.Mobiles.Add(mobile); AliasCommands.SetAlias("mobile", mobile.Serial); int val = MobileCommands.Hits("mobile"); Assert.AreEqual(250, val); Engine.Mobiles.Remove(mobile); }
public void WillGetHits() { _player.Hits = 100; Assert.AreEqual(100, MobileCommands.Hits(_player.Serial)); }