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); }
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); }
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); }