资 源 简 介
NUnit.CommonFixtures
A set of reusable test fixtures based on NUnit.
Value Object Test Fixture
http://kennethxu.blogspot.com/2009/11/unit-test-value-object.html
* Test each property by setting it to a few values and assert read the same back.
* Test each property"s initial value to be either the default value of the type or specified by the DefaultValueAttribute.
* Test the value object equals when and only when each property is equals.
* Verify hash code are same when objects are equal.
* If the value object implements ICloneable, verify the each property of cloned object is equals to the corresponding property of the original object.
* If the value object implements INotifyPropertyChanged, assert the event is fired with the correct property name when every one of properties is changed.