示例#1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test void testCompletedZero()
        internal virtual void TestCompletedZero()
        {
            IndexPopulationProgress progress = new IndexPopulationProgress(0, 1);

            assertEquals(1, progress.TotalCount);
            assertEquals(0, progress.CompletedCount);
            assertEquals(0, progress.CompletedPercentage, 0.01);
        }
示例#2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test void testGetCompleted()
        internal virtual void TestGetCompleted()
        {
            IndexPopulationProgress progress = new IndexPopulationProgress(1, 2);

            assertEquals(1L, progress.CompletedCount);
        }
示例#3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test void testGetCompletedPercentage()
        internal virtual void TestGetCompletedPercentage()
        {
            IndexPopulationProgress progress = new IndexPopulationProgress(1, 2);

            assertEquals(50.0f, progress.CompletedPercentage, 0.01f);
        }
示例#4
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test void testGetTotal()
        internal virtual void TestGetTotal()
        {
            IndexPopulationProgress progress = new IndexPopulationProgress(1, 2);

            assertEquals(2L, progress.TotalCount);
        }