public void HasNameInPrototype()
{
Function function = new Function(null, null);
DynamicObject dynobj = new DynamicObject(function);
DynamicObject prototype = new DynamicObject();
function.SetValue("prototype", prototype);
prototype.SetValue("name", "Adam");
Assert.IsTrue(dynobj.HasName("name"));
}