我开始使用AutoFixturehttp://autofixture.codeplex.com/因为我的单元测试因大量数据设置而变得臃肿。与编写单元测试相比,我花在设置数据上的时间更多。这是我的初始单元测试的示例(示例取自DDD蓝皮书的cargo应用程序示例)[Test]publicvoidshould_create_instance_with_correct_ctor_parameters(){varcarrierMovements=newList();vardeparureUnLocode1=newUnLocode("AB44D");vardepartureLocation1=ne