public void NewObjectWithPrototype() { this.EvaluateCommands("function Person() { this.name = 'Adam'; }"); this.EvaluateCommands("Person.prototype.age = 800; var adam = new Person();"); Assert.AreEqual(800, this.EvaluateExpression("adam.age")); }