//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void writingOfHeaderRecordDuringInitialiseNewStoreFileMustThrowOnPageOverflow() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void WritingOfHeaderRecordDuringInitialiseNewStoreFileMustThrowOnPageOverflow()
        {
            // 16-byte header will overflow an 8-byte page size
            PageCacheRule.PageCacheConfig pageCacheConfig = PageCacheRule.config();
            PageCache pageCache = _pageCacheRule.getPageCache(_fs.get(), pageCacheConfig, _config);
            MyStore   store     = new MyStore(this, _config, pageCache, PAGE_SIZE + 1);

            AssertThrowsUnderlyingStorageException(() => store.initialise(true));
        }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void extractHeaderRecordDuringLoadStorageMustThrowOnPageOverflow() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void ExtractHeaderRecordDuringLoadStorageMustThrowOnPageOverflow()
        {
            MyStore first = new MyStore(this, _config, _pageCacheRule.getPageCache(_fs.get(), _config), 8);

            first.Initialise(true);
            first.Close();

            PageCacheRule.PageCacheConfig pageCacheConfig = PageCacheRule.config();
            PageCache pageCache = _pageCacheRule.getPageCache(_fs.get(), pageCacheConfig, _config);
            MyStore   second    = new MyStore(this, _config, pageCache, PAGE_SIZE + 1);

            AssertThrowsUnderlyingStorageException(() => second.initialise(false));
        }
 private void CreateStore()
 {
     _store = new MyStore(this, _config, _pageCacheRule.getPageCache(_fs.get(), _config), 8);
     _store.initialise(true);
 }