Пример #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test void testIndexFolder()
        internal virtual void TestIndexFolder()
        {
            IndexFolderLayout indexLayout = CreateTestIndex();
            File indexFolder = indexLayout.IndexFolder;

            assertEquals(_indexRoot, indexFolder);
        }
Пример #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test void testIndexPartitionFolder()
        internal virtual void TestIndexPartitionFolder()
        {
            IndexFolderLayout indexLayout = CreateTestIndex();

            File indexFolder      = indexLayout.IndexFolder;
            File partitionFolder1 = indexLayout.GetPartitionFolder(1);
            File partitionFolder3 = indexLayout.GetPartitionFolder(3);

            assertEquals(partitionFolder1.ParentFile, partitionFolder3.ParentFile);
            assertEquals(indexFolder, partitionFolder1.ParentFile);
            assertEquals("1", partitionFolder1.Name);
            assertEquals("3", partitionFolder3.Name);
        }