internal DataSettingsConfiguration(ApplicationData applicationData, bool isProtected, string key) { Data = applicationData; Key = key; Protected = isProtected; Extension = DataSettingsKey.GetExtension(Protected); Path = DataSettingsKey.GetFullPathWithExtension(applicationData, key, isProtected); }
internal DataSettingsConfiguration(ApplicationData applicationData, bool isProtected, string key) { if (string.IsNullOrEmpty(key)) { throw new System.ArgumentException("message", nameof(key)); } Data = applicationData ?? throw new System.ArgumentNullException(nameof(applicationData)); Key = key; Protected = isProtected; Extension = DataSettingsKey.GetExtension(Protected); Path = DataSettingsKey.GetFullPathWithExtension(applicationData, key, isProtected); }
public void VerifyTheKeyByTypeNameUsingGenericsIsAValidFileName() { DataSettingsKey.KeyOrTypeName <List <string> >().Should().Be("List'string'"); }