public void ShouldGetElementFromHl7List() { IList <String> list = new LISTImpl <ST, String>(typeof(STImpl)).RawList(); list.Add("Fred"); list.Add("Barney"); list.Add("Wilma"); Assert.AreEqual("Barney", ListElementUtil.GetElement(list, 1), "element"); }
public void ShouldAddToHl7RawList() { IList <String> list = new LISTImpl <ST, String>(typeof(STImpl)).RawList(); list.Add("Fred"); list.Add("Barney"); list.Add("Wilma"); ListElementUtil.AddElement(list, "Betty"); Assert.AreEqual(4, list.Count, "count"); Assert.IsTrue(list.Contains("Betty")); }