Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        public void CreateList_NullableValueType()
        {
            IListInfo listInfo = new ListInfo(typeof(SimpleValueType?[]), typeof(SimpleValueType?));

            Assert.That(listInfo.CreateList(1), Is.EquivalentTo(new SimpleValueType?[1]));
        }
Exemplo n.º 3
0
        public void CreateList_ReferenceType()
        {
            IListInfo listInfo = new ListInfo(typeof(SimpleReferenceType[]), typeof(SimpleReferenceType));

            Assert.That(listInfo.CreateList(1), Is.EquivalentTo(new SimpleReferenceType[1]));
        }