public void Connect_success_with_enough_retries() { var connector = GetMockConnector(); Assert.NotNull(ConnectUtilities.ConnectWithRetries(connector.ConnectorFunc, 0, 4)); }
public void Connect_failed_due_to_too_few_retries() { var connector = GetMockConnector(); Assert.Throws <IOException>(() => ConnectUtilities.ConnectWithRetries(connector.ConnectorFunc, 0, 2)); }