문제

I'm selecting tool for populating my .net models (poco) with test data. I'm actually mocking wcf services and need to populate datacontract objects with test data. Found a huge number of test data generation tools, but the majority is related to DB test data generation and don't fit well for .net objects creation.

The most applicable that I found are:

  1. AutoFixture
  2. NBuilder

They both seem to provide quite similar functionality. I'm interested in any feedback on those tools. Pros and cons?

도움이 되었습니까?

해결책

Hi I was in the process of creating my own test builder when I ran into these two. I have tried both and found autofixture to be far preferable it has a richer syntax is extremely flexible and was easier to modify for my own use.

Marks tests are excellent, well written and this mixed with his blog should get you most of the way there.

brett

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top