public void TestItemText()
 {
     NativeTab tab = new NativeTab(testDlg.IdentifyFromDialogId(1022));
     Assert.AreEqual("a", tab.GetItemText(0));
     Assert.AreEqual("あ", tab.GetItemText(1));
     if (NativeMethods.IsWindowUnicode(testDlg.Handle))
     {
         Assert.AreEqual("𩸽", tab.GetItemText(3));
     }
 }
 public void TestGetItemTextOver256()
 {
     NativeTab tab = new NativeTab(testDlg.IdentifyFromDialogId(1022));
     StringBuilder overText = new StringBuilder();
     for (int i = 0; i < 259; i++)
     {
         overText.Append("a");
     }
     Assert.AreEqual(overText.ToString(), tab.GetItemText(2));
 }