SumOfMultiples Test timeout

I am currently trying to solve the task ‘SumOfMultiples’ in C#. My solution works perfectly in Visual Studio. But in Exercism I always get the error message:

Your tests timed out. This might mean that there was an issue in our infrastructure, but more likely it suggests that your code is running slowly. Is there an infinite loop or something similar?

Where is my error?
Here is my code:

public static class SumOfMultiples
{
    public static int Sum(IEnumerable<int> multiples, int max)
    {
        HashSet<int> numbers = [];
        foreach (int multiple in multiples)
        {
            for (int i = 1; multiple * i < max; i++)
            { 
                numbers.Add(multiple * i);
            }
        }
        return numbers.Sum();
    }
}

Are you running the Exercism tests in Visual Studio? Manually testing often does not cover all cases tested by Exercism.

I ran all the tests in Visual Studio that are done in Exercism. They all ran successfully.

Did you remove the (Skip = "Remove this Skip property to run this test") from the [Fact] attributes in the test file (see Solving the exercise in the testing docs)? One of the tests ends up in an endless loop and that should happen in Visual Studio, too.

Thank you for your help. The error is actually only when calling the method if the parameter “IEnumerable multiples” contains a 0.
Next, I will probably take a closer look at xUnit.