//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldSeeOutboundInstalledProtocolsOnLeader() throws Throwable //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldSeeOutboundInstalledProtocolsOnLeader() { string modifiers = (new StringJoiner(",", "[", "]")).add(COMPRESSION_SNAPPY.implementation()).ToString(); //JAVA TO C# CONVERTER TODO TASK: Method reference constructor syntax is not converted by Java to C# Converter: ProtocolInfo[] expectedProtocolInfos = _cluster.coreMembers().Where(member => !member.Equals(_leader)).Select(member => new ProtocolInfo(OUTBOUND, Localhost(member.raftListenAddress()), RAFT.canonicalName(), 2, modifiers)).ToArray(ProtocolInfo[] ::new); assertEventually("should see outbound installed protocols on core " + _leader.serverId(), () => InstalledProtocols(_leader.database(), OUTBOUND), hasItems(expectedProtocolInfos), 60, SECONDS); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldReturnCompressionWithVersionsSpecifiedCaseInsensitive() public virtual void ShouldReturnCompressionWithVersionsSpecifiedCaseInsensitive() { // given Config config = Config.defaults(CausalClusteringSettings.CompressionImplementations, COMPRESSION_SNAPPY.implementation().ToLower()); // when IList <ModifierSupportedProtocols> supportedModifierProtocols = (new SupportedProtocolCreator(config, _log)).createSupportedModifierProtocols(); // then IList <string> versions = supportedModifierProtocols[0].Versions(); assertThat(versions, contains(COMPRESSION_SNAPPY.implementation())); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldReturnACompressionModifierIfCompressionVersionsSpecified() public virtual void ShouldReturnACompressionModifierIfCompressionVersionsSpecified() { // given Config config = Config.defaults(CausalClusteringSettings.CompressionImplementations, COMPRESSION_SNAPPY.implementation()); // when IList <ModifierSupportedProtocols> supportedModifierProtocols = (new SupportedProtocolCreator(config, _log)).createSupportedModifierProtocols(); // then //JAVA TO C# CONVERTER TODO TASK: Method reference arbitrary object instance method syntax is not converted by Java to C# Converter: Stream <Org.Neo4j.causalclustering.protocol.Protocol_Category <Org.Neo4j.causalclustering.protocol.Protocol_ModifierProtocol> > identifiers = supportedModifierProtocols.Select(SupportedProtocols::identifier); assertThat(identifiers, StreamMatchers.contains(Org.Neo4j.causalclustering.protocol.Protocol_ModifierProtocolCategory.Compression)); }