Full documentation on usage and motivating examples at https://github.com/kbilsted/StatePrinter/tree/master/doc
Fixed
Added
- Added
AreAlike(), replacingIsSame()(which is deprecated). - Made error message tell about
AreAlike()when two strings are alike but not equals, when usingAreEquals(). - Prepared for future expansion of functionality, by placing unit testing configuration in a sub-configuration class.
Added
- Added automatic unit test rewriting
- Added configuration of how line-endings are generated during state printing. This is to mitigate problems due to different operating systems uses different line-endings.
- Added assertion helper methods
Stateprinter.Assert.AreEqual,Stateprinter.Assert.IsSame,Stateprinter.Assert.PrintIsSameandStateprinter.Assert.That. Improves the unit test experience by printing a suggested expected string as C# code. - Added a
AllFieldsAndPropertiesHarvesterwhich is able to harvest properties and fields. StringConverteris now configurable with respect to quote character.- BREAKING CHANGE: Projective harvester is now using the
AllFieldsAndPropertiesHarvesterrather instead of theFieldHarvester. This means both fields and properties are now harvested.
Added
- Executing stylecop on the build server.
- Made the
Configurationclass API a bit more fluent - BUGFIX: Harvesting of types were cached across
Stateprinterinstances, which no longer makes sense since harvesting is configurable from instance to instance. - BUGFIX: Changed how
ToString()methods are harvested. Thanks to "Sjdirect".
Added
- Support for using the native
ToString()implementation on types through a field harvester - Added a Projective field harvester to easily reduce the harvesting of selective fields on types in a type-safe manner. See the section on unit testing in the readme.md
- Added the type
Stateprinterand obsoleted theStatePrintertype
Added
- CLS compliance
- 20% Performance boost
Have fun!
Kasper B. Graversen
