public void GetPageInfoTest() { TestPage testPage = new TestPage(); PROPPAGEINFO[] pageInfoList = new PROPPAGEINFO[1]; testPage.GetPageInfo(pageInfoList); PROPPAGEINFO testPageInfo = pageInfoList[0]; Assert.AreEqual((uint)Marshal.SizeOf(typeof(PROPPAGEINFO)), testPageInfo.cb); Assert.AreEqual((uint)0, testPageInfo.dwHelpContext); Assert.IsNull(testPageInfo.pszHelpFile); Assert.IsNull(testPageInfo.pszDocString); Assert.AreEqual(testPage.MyPageView.ViewSize, new Size(testPageInfo.SIZE.cx, testPageInfo.SIZE.cy)); Assert.AreEqual(testPage.Title, testPageInfo.pszTitle); }