Skip to content

Commit

Permalink
Merge pull request #31 from atc-net/hotfix/issue-30
Browse files Browse the repository at this point in the history
Fix removal of ThrowingRecursionBehavior
  • Loading branch information
rickykaare authored Sep 5, 2023
2 parents 7e37f11 + e7f263a commit ea1e92b
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 ea1e92b

Please sign in to comment.