public void NotSettingWindowTest() { var wrappedWindow = new ManagedVwWindow(); Rect temp; wrappedWindow.GetClientRectangle(out temp); }
public void SimpleWindowTest() { using (var c = new Control()) { var wrappedWindow = new ManagedVwWindow(); wrappedWindow.Window = (uint)c.Handle; Rect temp; wrappedWindow.GetClientRectangle(out temp); Assert.AreEqual(c.ClientRectangle.Left, temp.left, "Left not the same"); Assert.AreEqual(c.ClientRectangle.Right, temp.right, "Right not the same"); Assert.AreEqual(c.ClientRectangle.Top, temp.top, "Top not the same"); Assert.AreEqual(c.ClientRectangle.Bottom, temp.bottom, "Bottom not the same"); } }