public void AddItemToList() { Sut.Add("go", "gitmek"); Sut.Add("come", "gelmek"); Sut.Add("sit", "oturmak"); Sut.Add("accept", "kabul etmek"); Sut.Add("visit", "ziyaret etmek"); Assert.AreEqual(5, Sut.GetItemCount()); Assert.AreEqual("kabul etmek", Sut.GetItemAt(0)); }
private CustomSortedList GetCFSortedList() { CustomSortedList list = new CustomSortedList(); int i = 0; for (i = 0; i <= 10; i++) { list.Add(Guid.NewGuid().ToString(), i); } return(list); }
public void Button6_Click(System.Object sender, System.EventArgs e) { CustomSortedList sortedlist = new CustomSortedList(); sortedlist.Add(1, 1); sortedlist.Add(2, 2); sortedlist.Add(3, 3); sortedlist.Add(4, 4); sortedlist.Add(5, 5); sortedlist.Add(6, 6); sortedlist.Add(7, 7); SocketData dataSortedList = new SocketData("SORTEDLIST_DATA", sortedlist); SocketData data = SocketData.ParseAndGet_SocketData_FromXMLDataString(dataSortedList.XMLDataString); this.txtDataSocketXMLString.Text = ""; this.txtDataSocketXMLString.Text = data.XMLDataString; }