public void ConfirmStatsPart2Case1(RecnoStats stats) { Assert.AreEqual(0, stats.DuplicatePages); Assert.AreEqual(0, stats.DuplicatePagesFreeBytes); Assert.AreNotEqual(0, stats.InternalPages); Assert.AreNotEqual(0, stats.InternalPagesFreeBytes); Assert.AreNotEqual(0, stats.LeafPages); Assert.AreNotEqual(0, stats.LeafPagesFreeBytes); Assert.AreEqual(1000, stats.nData); Assert.AreEqual(1000, stats.nKeys); Assert.AreNotEqual(0, stats.OverflowPages); Assert.AreNotEqual(0, stats.OverflowPagesFreeBytes); }
public void ConfirmStatsPart1Case1(RecnoStats stats) { Assert.AreEqual(1, stats.EmptyPages); Assert.AreEqual(1, stats.Levels); Assert.AreNotEqual(0, stats.MagicNumber); Assert.AreEqual(10, stats.MetadataFlags); Assert.AreEqual(2, stats.MinKey); Assert.AreEqual(2, stats.nPages); Assert.AreEqual(4096, stats.PageSize); Assert.AreEqual(4000, stats.RecordLength); Assert.AreEqual(256, stats.RecordPadByte); Assert.AreEqual(9, stats.Version); }
public void ConfirmStatsPart3Case1(RecnoStats stats) { Assert.AreNotEqual(0, stats.FreePages); }