ServiceStack/ServiceStack.Text — pull request #234 by Suremaker (2012-11-13 22:01:34+00:00)
Title: Fixed problem with serialization entities containing a polymorphic items with additional properties and fixed failing expando deserialization test

1. Added Can_serialize_and_deserialize_an_entity_containing_a_polymorphic_item_with_additional_properties_correctly() test:
- changed WriteType<> to use WriteAbstractProperties for interfaces if JsConfig.PreferInterfaces is not set

2. Can_deserialize_two_level_expando() test fix:
- changed DeserializeDynamic<>.ParseDynamic() to unescape string if ParsePrimitive() return null

3. Changed Can_force_specific_TypeInfo():
- introduced new OtherDog type that is used in test, to ensure that JsConfig<>.IncludeTypeInfo setting change would be applied before test run

4. Changed Can_Serialize_Cyclical_Dependency_via_interface() test:
- it is valid now if JsConfig.PreferInterfaces is set to true. If this setting is not set, all properties of Parent object would be serialized, causing cyclic dependency issues
- added SetUp() that resets JsConfig