public void IsBadRequestException_CustomBadRequestException() { HystrixCommandBase.RegisterCustomBadRequestExceptionChecker("custom", ex => ex is IndexOutOfRangeException); Exception ex2 = new IndexOutOfRangeException(); Assert.IsTrue(ex2.IsBadRequestException()); }