public void SetAndGetInstanceVariable() { IObject obj = new BaseObject(type); obj.SetValue("name", "Adam"); Assert.AreEqual("Adam", obj.GetValue("name")); }
public void RaiseWhenSetUndefinedVariable() { IObject obj = new BaseObject(type); obj.SetValue("length", 100); }
public void RaiseWhenInvokeUndefinedMethod() { IObject obj = new BaseObject(type); obj.Invoke("getLength", null, null); }
public void InvokeGetName() { IObject obj = new BaseObject(type); obj.SetValue("name", "Adam"); Assert.AreEqual("Adam", obj.Invoke("getName", null, null)); }
public void GetObjectType() { IObject obj = new BaseObject(this.type); Assert.AreEqual(this.type, obj.Type); }
public void GetInstanceVariableAsNull() { IObject obj = new BaseObject(type); Assert.IsNull(obj.GetValue("name")); }