public void GetColumByFieldTest() { var csv = new CsvFile(); Assert.IsNull(csv.GetColumByField("Hello")); var col = new Column() { Name = "Column" }; csv.ColumnAdd(col); csv.Mapping.Add(new Mapping() { FileColumn = "Column", TemplateField = "Field" }); Assert.AreEqual(col, csv.GetColumByField("Field")); }