public void ValueTypePropertyTest() { StructTest test2 = new StructTest(10); dynamic wrapper2 = new DynamicWrapper <StructTest>(ref test2); wrapper2.Value = 30; }
public void ValueTypeTest() { StructTest test = new StructTest(1); dynamic wrapper = test.ToDynamic(); wrapper.value = 2; Assert.AreEqual(2, wrapper.value.ToStatic()); Assert.AreNotEqual(2, test.Value); StructTest test2 = new StructTest(10); dynamic wrapper2 = new DynamicWrapper <StructTest>(ref test2); wrapper2.value = 20; Assert.AreEqual(20, wrapper2.value.ToStatic()); Assert.AreNotEqual(20, test2.Value); }