public void ShouldBeEmptyWhenRequestAllStorageAmmo(uint requestAmmo) { var storage = new AmmoStorage(requestAmmo); storage.FullReffil(); var ammo = storage.GetAmmo(requestAmmo); Assert.AreEqual(requestAmmo, ammo); Assert.IsTrue(storage.Empty); }
public void ShouldGetXAmmoWhenRequested(uint requestAmmo, uint expected) { var maxAmmuntion = 10u; var storage = new AmmoStorage(maxAmmuntion); storage.FullReffil(); var ammo = storage.GetAmmo(requestAmmo); Assert.AreEqual(expected, ammo); }