Ejemplo n.º 1
0
        public static void Confirm(XmlElement xmlElem,
		    BTreeDatabase btreeDB, bool compulsory)
        {
            DatabaseTest.Confirm(xmlElem, btreeDB, compulsory);
            Configuration.ConfirmDuplicatesPolicy(xmlElem,
                "Duplicates", btreeDB.Duplicates, compulsory);
            Configuration.ConfirmUint(xmlElem, "MinKeysPerPage",
                btreeDB.MinKeysPerPage, compulsory);
            /*
             * BTreeDatabase.RecordNumbers is the value of
             * BTreeDatabaseConfig.UseRecordNumbers.
             */
            Configuration.ConfirmBool(xmlElem, "UseRecordNumbers",
                btreeDB.RecordNumbers, compulsory);
            /*
             * BTreeDatabase.ReverseSplit is the value of
             * BTreeDatabaseConfig.NoReverseSplitting.
             */
            Configuration.ConfirmBool(xmlElem, "NoReverseSplitting",
                btreeDB.ReverseSplit, compulsory);
            Assert.AreEqual(DatabaseType.BTREE, btreeDB.Type);
            string type = btreeDB.ToString();
            Assert.IsNotNull(type);
        }