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

            beginTest("Set Cache Adjust Interval");

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

            return(true);
        }