//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldKeepLatestOnCommit() public virtual void ShouldKeepLatestOnCommit() { // given _state.append(0, _membersA); _state.append(1, _membersB); // when _state.commit(0); // then assertEquals(_state.Latest, _membersB); assertTrue(_state.uncommittedMemberChangeInLog()); assertEquals(1, _state.Ordinal); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public void processLog(long commitIndex, java.util.Collection<org.neo4j.causalclustering.core.consensus.outcome.RaftLogCommand> logCommands) throws java.io.IOException public virtual void ProcessLog(long commitIndex, ICollection <RaftLogCommand> logCommands) { foreach (RaftLogCommand logCommand in logCommands) { logCommand.Dispatch(this); } if (_state.commit(commitIndex)) { _membershipChanger.onRaftGroupCommitted(); _storage.persistStoreData(_state); UpdateMemberSets(); } }