Esempio n. 1
0
        public void GetNullableLookupIdFromValueTest()
        {
            var expected = 42;
            var item     = CreateFakeItem();

            item["MyLookup"] = new FieldLookupValue
            {
                LookupId = expected
            };

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

            Assert.AreEqual(expected, actual);
        }