public void MapsToDictionary()
 {
     var testClass = new TestClass();
     testClass.PublicProperty = "Public Property";
     var dictionary = testClass.ToDictionary();
     dictionary.ShouldBeEquivalentTo(new Dictionary<string, object> { { "PublicProperty", testClass.PublicProperty } });
     #if DEBUG
     dictionary.ExecutionTimeOf(d => d.ToObject(typeof(TestClass))).ShouldNotExceed(TimeSpan.FromMilliseconds(2));
     #endif
 }