Menu

Close
  • Home
  • About Me
  • Projects
  • Contact
  • Twitter
  • Facebook
  • Subscribe
Menu

Thomas Ardal

Freelance software consultant and entrepreneur building SaaS applications like elmah.io

Follow @ThomasArdal Follow @elmah_io

Reflection

1 posts
Page 1 of 1

Non-generic CreateAnonymous method for AutoFixture

Thomas Ardal on AutoFixture, Generics, Reflection, unit test | 17 Jul 2012

I sometimes (not often) find myself needing a non-generic version of the CreateAnonymous extension-method forAutoFixture [http://autofixture.codeplex.com/]. Usually when needing a test value, you do something like this: int someInt = new Fixture().CreateAnonymous<int>(); The code works for 99% of all tests. Now and then I…

Page 1 of 1
Copyright © 2025 Thomas Ardal