コード例 #1
0
        public void GetLookupIdListFromArray()
        {
            var expected = new List <int> {
                1, 2, 3, 5, 7, 11, 13
            };
            var item = CreateFakeItem();

            item["MyLookup"] = expected.Select(val => new FieldLookupValue {
                LookupId = val
            }).ToArray();

            var mapper = new ListItemWrapper(item);
            var actual = mapper.GetLookupIdList("MyLookup");

            Assert.AreNotEqual(expected, actual);
        }