public void ParseProperty(string line, string sectionName) { if (!_data.AnySectionExists()) { throw new NoPropertyKeyFound("No Section was found! You need to have a section to add new property!"); } var section = _data.GetSection(sectionName); if (section == null) { throw new SectionNotFound($"Section {sectionName} was not found!"); } _data.AddProperty(section, _parser.ParsePropertyLine(line)); }