我目前正在尝试运行一个单元测试,其中我需要AutoFixture来生成一个JsonDocument属性。但这是不可能的,因为 AutoFixture.ObjectCreationExceptionWithPath : AutoFixture was unable to create an instance如何使用AutoFixture自动创建包含JsonDocument的类。 我想使用AutoFixture创建的类非常简单,除了JsonDocument之外,所有的属性都是简单类型。
项目中的一些测试使用带有AutoMoq的AutoFixture。(Exception from HRESULT: 0x80131040) at Ploeh.AutoFixture.CustomizationNode.Create(Object request,Ploeh.AutoFixture.Kernel.Recursio
如果我将Name更改为File的另一个属性,测试就会成功,这会让我认为我为Name提供了某种定制,而当我使用AutoFixture 1.0时,这些定制是不起作用的。autoFixtures.Behaviors.Add(new TracingBehavior());Requested: System.String Name
如何让AutoFixture填充包含接口属性的对象中的属性?Make {get; set; } // I would like these to be populated as wellfixture.Create()抛出:
附加信息: AutoFixture无法从Mediachase.Commerce.Invento