My Software Notes

Useful things I discover

How to Unit Test Custom Data Annotations

with one comment

I created a custom data annotation to test a zip code and I started writing a unit test to make sure it worked and … ehhh, ummm, arrr?? How do I test it?

Well, I searched and found this great article: Unit Testing Custom Data Annotations.

Thank you Walter C. Johnson! A nice clean solution.

Advertisements

Written by gsdwriter

December 16, 2011 at 5:42 pm

Posted in .NET, Testing, Tools

Tagged with ,

One Response

Subscribe to comments with RSS.

  1. You’re welcome 🙂

    villecoder

    December 17, 2011 at 7:56 pm


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: