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

            beginTest("Set Max Unused Time");

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

            return(true);
        }