//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldRunChecksInSingleThreadedPass() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void ShouldRunChecksInSingleThreadedPass()
        {
            // given
            StoreAccess  store       = fixture.directStoreAccess().nativeStores();
            int          threads     = defaultConsistencyCheckThreadsNumber();
            CacheAccess  cacheAccess = new DefaultCacheAccess(new DefaultCounts(threads), threads);
            RecordAccess access      = FullCheck.RecordAccess(store, cacheAccess);

            FullCheck singlePass = new FullCheck(TuningConfiguration, ProgressMonitorFactory.NONE, Statistics.NONE, threads, true);

            ConsistencySummaryStatistics singlePassSummary = new ConsistencySummaryStatistics();
            InconsistencyLogger          logger            = mock(typeof(InconsistencyLogger));
            InvocationLog singlePassChecks = new InvocationLog();

            // when
            singlePass.Execute(fixture.directStoreAccess(), new LogDecorator(singlePassChecks), access, new InconsistencyReport(logger, singlePassSummary), cacheAccess, NO_MONITOR);

            // then
            verifyZeroInteractions(logger);
            assertEquals("Expected no inconsistencies in single pass.", 0, singlePassSummary.TotalInconsistencyCount);
        }
Beispiel #2
0
 public RebuildPreventingCountsInitializer(FullCheck outerInstance)
 {
     this._outerInstance = outerInstance;
 }