public void It_can_invoke_operation() { var reference = new object(); dynamic proxy = new DynamicMBeanProxy("sample:id=1", _server); var result = proxy.Operation(7, reference); Assert.AreSame(reference, result); }
public void It_can_set_attribute() { dynamic proxy = new DynamicMBeanProxy("sample:id=1", _server); proxy.Attribute = "New text"; Assert.AreEqual("New text", _bean.Attribute); }
public void It_can_get_attribute() { dynamic proxy = new DynamicMBeanProxy("sample:id=1", _server); var result = proxy.Attribute; Assert.AreEqual("Text", result); }