kbilsted / StatePrinter

Automating unit testing and ToString() coding
Apache License 2.0
92 stars 31 forks source link

Rolling guid-ValueConverter #31

Closed kbilsted closed 9 years ago

kbilsted commented 9 years ago

to simplify unit testing with data containing guids, we need to ensure the guid values are stable across executions.

Thus a valueconverter for guids. converting them into 000001, 000002, ... as they meet is needed. A dictionary should hold converted values to ensure the same guid printed multiple times is printed with its new value.

Get enspired from the existing GuidValueConverter

Also documentation on how to use it in unit testing is needed