AjScript.Tests.Language.DynamicObjectTests.HasNameInPrototype C# (CSharp) Method

HasNameInPrototype() private method

private HasNameInPrototype ( ) : void
return void
        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"));
        }