public void SelectionListCopyTo() { tlog.Debug(tag, $"SelectionListCopyTo START"); var model = new TestModel(); string[] list = { "Jiangsu", "Zhejiang", "Shanghai" }; using (CollectionView cv = new CollectionView(model)) { var testingTarget = new SelectionList(cv); Assert.IsNotNull(testingTarget, "should be not null"); Assert.IsInstanceOf <SelectionList>(testingTarget, "should be an instance of testing target class!"); testingTarget.CopyTo(list, 1); var result = testingTarget.Remove("Zhejiang"); tlog.Debug(tag, "Remove : " + result); testingTarget.Insert(0, "Beijing"); tlog.Debug(tag, "Contains : " + testingTarget.Contains("Beijing")); testingTarget.RemoveAt(0); tlog.Debug(tag, "Contains : " + testingTarget.Contains("Beijing")); } tlog.Debug(tag, $"SelectionListCopyTo END (OK)"); }