Пример #1
0
        public void GetLinkUrlFromValueTest()
        {
            var expected = "https://www.microsoft.com";

            var item = CreateFakeItem();

            item["MyLink"] = new FieldUrlValue
            {
                Url = expected
            };

            var wrapper = new ListItemWrapper(item);
            var actual  = wrapper.GetLinkUrl("MyLink");

            Assert.AreEqual(expected, actual);
        }