XUnit crashing when a stack overflow occurs. - C#