public void InvokeNativeSet()
{
Rectangle rectangle = new Rectangle() { Width = 10, Height = 20 };
Assert.AreEqual(11, DotNetObject.SendNativeMessage(null, rectangle, "nsetput", new object[] { "Width", 11 }));
Assert.AreEqual(21, DotNetObject.SendNativeMessage(null, rectangle, "nsetput", new object[] { "Height", 21 }));
Assert.AreEqual(11, rectangle.Width);
Assert.AreEqual(21, rectangle.Height);
}