public void CanGetField() { var o = new ClassWithField { Field = "Mickey Mouse" }; _engine.SetValue("o", o); RunTest(@" assert(o.Field === 'Mickey Mouse'); "); }
public void CanSetField() { var o = new ClassWithField(); _engine.SetValue("o", o); RunTest(@" o.Field = 'Mickey Mouse'; assert(o.Field === 'Mickey Mouse'); "); Assert.Equal("Mickey Mouse", o.Field); }