public void GetValueFromPrototypeAndSetValueInObject()
{
Function function = new Function(null, null);
DynamicObject dynobj = new DynamicObject(function);
DynamicObject prototype = new DynamicObject();
function.SetValue("prototype", prototype);
prototype.SetValue("x", 10);
dynobj.SetValue("x", 20);
Assert.AreEqual(20, dynobj.GetValue("x"));
Assert.AreEqual(10, prototype.GetValue("x"));
}