private bool setDirtyCacheLimitsTest( DbSystem dbSystem) { ulong ulSetMaxDirty = 117000000; ulong ulGetMaxDirty; ulong ulSetLowDirty = 37000000; ulong ulGetLowDirty; beginTest( "Set Dirty Cache Limits"); try { dbSystem.setDirtyCacheLimits( ulSetMaxDirty, ulSetLowDirty); } catch (XFlaimException ex) { endTest( false, ex, "calling setDirtyCacheLimits"); return( false); } try { dbSystem.getDirtyCacheLimits( out ulGetMaxDirty, out ulGetLowDirty); } catch (XFlaimException ex) { endTest( false, ex, "calling getDirtyCacheLimits"); return( false); } if (ulSetMaxDirty != ulGetMaxDirty || ulSetLowDirty != ulGetLowDirty) { endTest( false, false); if (ulSetMaxDirty != ulGetMaxDirty) { System.Console.WriteLine( "GetMaxDirty [{0}] != SetMaxDirty [{1}]", ulGetMaxDirty, ulSetMaxDirty); } if (ulSetLowDirty != ulGetLowDirty) { System.Console.WriteLine( "GetLowDirty [{0}] != SetLowDirty [{1}]", ulGetLowDirty, ulSetLowDirty); } } endTest( false, true); return( true); }