diff --git a/src/Atc.Test/Customizations/RecursionCustomization.cs b/src/Atc.Test/Customizations/RecursionCustomization.cs index 02bae6e..aee88da 100644 --- a/src/Atc.Test/Customizations/RecursionCustomization.cs +++ b/src/Atc.Test/Customizations/RecursionCustomization.cs @@ -10,7 +10,9 @@ public class RecursionCustomization : ICustomization public void Customize(IFixture fixture) { fixture?.Behaviors - .Remove(new ThrowingRecursionBehavior()); + .OfType() + .ToList() + .ForEach(b => fixture.Behaviors.Remove(b)); fixture?.Behaviors .Add(new OmitOnRecursionBehavior());