Example #1
0
        public void SetFromLongTest()
        {
            var expected = (long)42;

            var item    = CreateFakeItem();
            var wrapper = new ListItemWrapper(item);

            wrapper.Set("MyLong", expected);
            var actual = (long)item["MyLong"];

            Assert.AreEqual(expected, actual);
        }
Example #2
0
        public void SetFromDoubleTest()
        {
            var expected = 3.14;

            var item    = CreateFakeItem();
            var wrapper = new ListItemWrapper(item);

            wrapper.Set("MyDouble", expected);
            var actual = (double)item["MyDouble"];

            Assert.AreEqual(expected, actual);
        }
Example #3
0
        public void SetFromIntTest()
        {
            var expected = 42;

            var item    = CreateFakeItem();
            var wrapper = new ListItemWrapper(item);

            wrapper.Set("MyInt", expected);
            var actual = (int)item["MyInt"];

            Assert.AreEqual(expected, actual);
        }