Beispiel #1
0
        private bool setUnusedCleanupIntervalTest(
            DbSystem dbSystem)
        {
            uint uiSetValue = 31;
            uint uiGetValue;

            beginTest("Set Unused Cleanup Interval");

            try
            {
                dbSystem.setUnusedCleanupInterval(uiSetValue);
            }
            catch (XFlaimException ex)
            {
                endTest(false, ex, "calling setUnusedCleanupInterval");
                return(false);
            }
            try
            {
                uiGetValue = dbSystem.getUnusedCleanupInterval();
            }
            catch (XFlaimException ex)
            {
                endTest(false, ex, "calling getUnusedCleanupInterval");
                return(false);
            }
            if (uiSetValue != uiGetValue)
            {
                endTest(false, false);
                System.Console.WriteLine("GetValue [{0}] != SetValue [{1}]",
                                         uiGetValue, uiSetValue);
            }
            endTest(false, true);

            return(true);
        }