private IList ConvertFromStringListToGuidList(object publicValue) { if (publicValue == null) { return(null); } IList publicValueList = ArgumentUtility.CheckType <IList> ("publicValue", publicValue); IList nativeValueList = ListInfo.CreateList(publicValueList.Count); for (int i = 0; i < publicValueList.Count; i++) { nativeValueList[i] = ConvertFromStringToGuid(publicValueList[i]); } return(nativeValueList); }
public void CreateList_NullableValueType() { IListInfo listInfo = new ListInfo(typeof(SimpleValueType?[]), typeof(SimpleValueType?)); Assert.That(listInfo.CreateList(1), Is.EquivalentTo(new SimpleValueType?[1])); }
public void CreateList_ReferenceType() { IListInfo listInfo = new ListInfo(typeof(SimpleReferenceType[]), typeof(SimpleReferenceType)); Assert.That(listInfo.CreateList(1), Is.EquivalentTo(new SimpleReferenceType[1])); }