Example #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void storeTypeofSomeInvalidFile()
        public virtual void StoreTypeofSomeInvalidFile()
        {
            assertThat(StoreType.typeOf(DatabaseFile.LABEL_SCAN_STORE), @is(null));
        }
Example #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void storeTypeOfMetaDataStoreFile()
        public virtual void StoreTypeOfMetaDataStoreFile()
        {
            StoreType matchedType = StoreType.typeOf(DatabaseFile.METADATA_STORE).orElseThrow(() => new System.InvalidOperationException("Store type not found"));

            assertEquals(StoreType.MetaData, matchedType);
        }