public void ToStringString_ProducesExpectedKeys() { //arrange var person = PersonFactory.Build(); //act var dictionary = person.ReflectToDictionary().ToStringString(); //assert CollectionAssert.AreEquivalent(dictionary.Keys.ToList(), Person.PublicPropertiesAsStrings()); }
public ObjectExtensionTests_ReflectToDict() { person = PersonFactory.Build(); dictionary = person.ReflectToDictionary(); }