//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @SuppressWarnings("unchecked") @Test public void shouldProcessAllTheRecordsInAStore() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldProcessAllTheRecordsInAStore() { // given RecordStore <NodeRecord> nodeStore = Stores.builder().build().NodeStore; Org.Neo4j.Consistency.report.ConsistencyReport_Reporter reporter = mock(typeof(Org.Neo4j.Consistency.report.ConsistencyReport_Reporter)); StoreProcessor processor = new StoreProcessor(Org.Neo4j.Consistency.checking.CheckDecorator_Fields.None, reporter, Stage_Fields.SequentialForward, CacheAccess.EMPTY); nodeStore.UpdateRecord(Node(0, false, 0, 0)); nodeStore.UpdateRecord(Node(1, false, 0, 0)); nodeStore.UpdateRecord(Node(2, false, 0, 0)); nodeStore.HighestPossibleIdInUse = 2; // when processor.ApplyFiltered(nodeStore); // then verify(reporter, times(3)).forNode(any(typeof(NodeRecord)), any(typeof(RecordCheck))); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @SuppressWarnings("unchecked") @Test public void shouldStopProcessingRecordsWhenSignalledToStop() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldStopProcessingRecordsWhenSignalledToStop() { // given Org.Neo4j.Consistency.report.ConsistencyReport_Reporter reporter = mock(typeof(Org.Neo4j.Consistency.report.ConsistencyReport_Reporter)); StoreProcessor processor = new StoreProcessor(Org.Neo4j.Consistency.checking.CheckDecorator_Fields.None, reporter, Stage_Fields.SequentialForward, CacheAccess.EMPTY); RecordStore <NodeRecord> nodeStore = new RecordStore_DelegatorAnonymousInnerClass(this, processor); nodeStore.UpdateRecord(Node(0, false, 0, 0)); nodeStore.UpdateRecord(Node(1, false, 0, 0)); nodeStore.UpdateRecord(Node(2, false, 0, 0)); nodeStore.UpdateRecord(Node(3, false, 0, 0)); nodeStore.UpdateRecord(Node(4, false, 0, 0)); nodeStore.HighestPossibleIdInUse = 4; // when processor.ApplyFiltered(nodeStore); // then verify(reporter, times(3)).forNode(any(typeof(NodeRecord)), any(typeof(RecordCheck))); }