public void invalid_path_throws_exception() { IList<Step>descrs = new List<Step>(); Step item = new Step(); descrs.Add(item); Excel_writer writer = new Excel_writer(descrs, Test_data.invalid_file); }
private void load_descriptions() { var data = from p in test["__value"]["Steps"]["__value"].Children()["__value"] select new { Description = p["Description"], Custom = p["CustomDescription"] }; foreach (var item in data) { Step step = new Step(); string listDescr = item.Description.ToString(); if (listDescr != null) { step.Description = listDescr; } if (item.Custom != null) { step.Custom = item.Custom.ToString(); } descriptions.Add(step); } }
private void add_filename_to_first_descriptions_item(FileInfo jsonFile) { Step title = new Step(); title.Description = jsonFile.FullName; descriptions.Add(title); }