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