public void General_EthnologueCodeChanged_ModifyWsId_Cancel()
{
m_dlg.ShowDialog(m_wsKalaba);
// change to nonconflicting ethnologue code
m_dlg.SelectEthnologueCodeDlg("Silly", "qaa-x-xxx", "", DialogResult.OK,
new DummyWritingSystemPropertiesDialog.ShowMsgBoxStatus[] { },
new string[] { },
new DialogResult[] { });
m_dlg.VerifyListBox(new[] { "Silly", "Silly (International Phonetic Alphabet)" });
m_dlg.VerifyRelatedWritingSystem("xxx");
m_dlg.VerifyLoadedForListBoxSelection("Silly");
m_dlg.PressCancel();
Assert.AreEqual(false, m_dlg.IsChanged);
VerifyWsNames(
new[] { m_wsKalaba.Handle, m_wsKalabaIpa.Handle },
new[] { "Kalaba", "Kalaba (International Phonetic Alphabet)" },
new[] { "qaa-x-kal", "qaa-fonipa-x-kal" });
}