Example #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldOverrideBigPageCacheMemorySettingContainingUnit()
        public virtual void ShouldOverrideBigPageCacheMemorySettingContainingUnit()
        {
            // GIVEN
            Config        dbConfig = Config.defaults(pagecache_memory, "2g");
            Configuration config   = new Configuration_Overridden(dbConfig);

            // WHEN
            long memory = config.PageCacheMemory();

            // THEN
            assertEquals(MAX_PAGE_CACHE_MEMORY, memory);
        }
Example #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldOverrideSmallPageCacheMemorySettingContainingUnit()
        public virtual void ShouldOverrideSmallPageCacheMemorySettingContainingUnit()
        {
            // GIVEN
            long          overridden = parseLongWithUnit("10m");
            Config        dbConfig   = Config.defaults(pagecache_memory, valueOf(overridden));
            Configuration config     = new Configuration_Overridden(dbConfig);

            // WHEN
            long memory = config.PageCacheMemory();

            // THEN
            assertEquals(overridden, memory);
        }