public void CanSerializeMemberTypeSetting() { var memberTypeSetting = new MemberTypeSetting("Fields", "Member Variables", 1); Assert.IsNotNull(memberTypeSetting); var serializedString = (string)memberTypeSetting; Assert.IsFalse(string.IsNullOrWhiteSpace(serializedString)); }
/// <summary> /// Loads the settings. /// </summary> public override void LoadSettings() { Classes = MemberTypeSetting.Deserialize(Settings.Default.Reorganizing_MemberTypeClasses); Constructors = MemberTypeSetting.Deserialize(Settings.Default.Reorganizing_MemberTypeConstructors); Delegates = MemberTypeSetting.Deserialize(Settings.Default.Reorganizing_MemberTypeDelegates); Destructors = MemberTypeSetting.Deserialize(Settings.Default.Reorganizing_MemberTypeDestructors); Enums = MemberTypeSetting.Deserialize(Settings.Default.Reorganizing_MemberTypeEnums); Events = MemberTypeSetting.Deserialize(Settings.Default.Reorganizing_MemberTypeEvents); Fields = MemberTypeSetting.Deserialize(Settings.Default.Reorganizing_MemberTypeFields); Indexers = MemberTypeSetting.Deserialize(Settings.Default.Reorganizing_MemberTypeIndexers); Interfaces = MemberTypeSetting.Deserialize(Settings.Default.Reorganizing_MemberTypeInterfaces); Methods = MemberTypeSetting.Deserialize(Settings.Default.Reorganizing_MemberTypeMethods); Properties = MemberTypeSetting.Deserialize(Settings.Default.Reorganizing_MemberTypeProperties); Structs = MemberTypeSetting.Deserialize(Settings.Default.Reorganizing_MemberTypeStructs); CreateMemberTypesFromCurrentState(); }