protected virtual void Clear(IFreespaceManager freespaceManager) { Slot slot = null; do { slot = freespaceManager.AllocateSlot(1); } while (slot != null); Assert.AreEqual(0, freespaceManager.SlotCount()); Assert.AreEqual(0, freespaceManager.TotalFreespace()); }
protected virtual void Clear(IFreespaceManager freespaceManager) { Slot slot = null; do { slot = freespaceManager.AllocateSlot(1); }while (slot != null); Assert.AreEqual(0, freespaceManager.SlotCount()); Assert.AreEqual(0, freespaceManager.TotalFreespace()); }
protected virtual void AssertSame(IFreespaceManager fm1, IFreespaceManager fm2) { Assert.AreEqual(fm1.SlotCount(), fm2.SlotCount()); Assert.AreEqual(fm1.TotalFreespace(), fm2.TotalFreespace()); }
public virtual int TotalFreespace() { return(_blockConverter.BlocksToBytes(_delegate.TotalFreespace())); }