0

I am writing a Unit Test using Microsot Nunit and Autofixture. I am getting a problem that When I generate a objects through AutoFixture and try to iterate over them, It does not produce result and hold on to that line. I tried to Debug it but same thing happen. When it comes to iteration, it does hold on to that place. Please find my code below.

var fixture = new Fixture();
fixture.Behaviors.Remove(new ThrowingRecursionBehavior());
fixture.Behaviors.Add(new OmitOnRecursionBehavior());
fixture.Customizations.Add(new XsdRestrictionHandler());
fixture.Customize(new MultipleCustomization());
foreach(var invoice in fixture.Build<ReceiptInvoice>().CreateMany(100))
{    
}

As I mentioned It does not iterate over element and hold onto that place and even does not produce any error.

Any help would be appreciated.

SurvivalMachine
  • 7,946
  • 15
  • 57
  • 87
adl
  • 11
  • 1
  • 6

0 Answers0