コード例 #1
0
 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());
 }
コード例 #2
0
        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());
        }
コード例 #3
0
 protected virtual void AssertSame(IFreespaceManager fm1, IFreespaceManager fm2)
 {
     Assert.AreEqual(fm1.SlotCount(), fm2.SlotCount());
     Assert.AreEqual(fm1.TotalFreespace(), fm2.TotalFreespace());
 }
コード例 #4
0
 protected virtual void AssertSame(IFreespaceManager fm1, IFreespaceManager fm2)
 {
     Assert.AreEqual(fm1.SlotCount(), fm2.SlotCount());
     Assert.AreEqual(fm1.TotalFreespace(), fm2.TotalFreespace());
 }
コード例 #5
0
 public virtual int SlotCount()
 {
     return(_delegate.SlotCount());
 }