Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AutoFixture vs NBuilder [closed]

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?

like image 516
Andrii Avatar asked May 14 '10 15:05

Andrii


1 Answers

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

like image 81
GloryDev Avatar answered Oct 13 '22 16:10

GloryDev