Small sample of using Code Contracts

added by outcoldman
9/19/2010 12:08:57 PM

0 Kicks, 53 Views

I had read about Code Contracts long time ago, but I didn’t see a reason to use contract instead of simple tests and argument's check with Exception's throws. Only now I’m trying to use them at real project. I didn’t see why I need to write:Contract.Requires