public override void OnOpened(Connection connection) { if (connection is JettyHttpConnection) { _connectionTracker.add(( JettyHttpConnection )connection); } }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void shouldAllowAddingOfConnections() internal virtual void ShouldAllowAddingOfConnections() { _tracker.add(_connection1); _tracker.add(_connection2); _tracker.add(_connection3); assertThat(_tracker.activeConnections(), containsInAnyOrder(_connection1, _connection2, _connection3)); }