public void TestReadIcdFromFile() { Icd10Loader loader = new Icd10Loader(); loader.ReadIcdFromFile(); List <Pair <String, String> > content = loader.Content; Assert.IsNotNull(content); Assert.IsTrue(content.Any()); bool contained = false; foreach (var pair in content) { Console.Out.WriteLine(pair); if (pair.Key.Equals("000.0")) { contained = true; Assert.AreEqual("Test", pair.Value); break; } } Assert.IsTrue(contained); }
public Form1() { // @See: http://www.codeproject.com/Articles/15013/Windows-Forms-User-Settings-in-C InitializeComponent(); icd10Loader = new Icd10Loader(); ConfigListView(); FillListViewData(new List <Pair <String, String> >()); // FillIcd10View(); }