Skip to content

Commit

Permalink
Fix removal of ThrowingRecursionBehavior
Browse files Browse the repository at this point in the history
  • Loading branch information
rickykaare committed Sep 5, 2023
1 parent 7e37f11 commit e7f263a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Atc.Test/Customizations/RecursionCustomization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ public class RecursionCustomization : ICustomization
public void Customize(IFixture fixture)
{
fixture?.Behaviors
.Remove(new ThrowingRecursionBehavior());
.OfType<ThrowingRecursionBehavior>()
.ToList()
.ForEach(b => fixture.Behaviors.Remove(b));

fixture?.Behaviors
.Add(new OmitOnRecursionBehavior());
Expand Down

0 comments on commit e7f263a

Please sign in to comment.