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

            beginTest("Set Checkpoint Interval");

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

            return(true);
        }