SIL.FieldWorks.FwCoreDlgs.DummyWritingSystemPropertiesDialog.VerifyRelatedWritingSystem C# (CSharp) Method

VerifyRelatedWritingSystem() private method

private VerifyRelatedWritingSystem ( string langAbbr ) : void
langAbbr string
return void
		internal void VerifyRelatedWritingSystem(string langAbbr)
		{
			foreach (IWritingSystem ws in WsList.Items)
				Assert.AreEqual(langAbbr, ws.LanguageSubtag.Code);
		}

Usage Example

Ejemplo n.º 1
0
 public void WsListContent()
 {
     // Setup dialog to show Kalaba (xkal) related wss.
     m_dlg.ShowDialog(m_wsKalaba);
     m_dlg.VerifyListBox(new[] { "Kalaba", "Kalaba (International Phonetic Alphabet)" });
     m_dlg.VerifyRelatedWritingSystem("kal");
     m_dlg.VerifyLoadedForListBoxSelection("Kalaba");
     // Select Kalaba (IPA) and verify dialog is setup for that one.
     m_dlg.WsList.SelectedItem = m_dlg.WsList.Items.Cast <CoreWritingSystemDefinition>().Single(ws => ws.DisplayLabel == "Kalaba (International Phonetic Alphabet)");
     m_dlg.VerifyLoadedForListBoxSelection("Kalaba (International Phonetic Alphabet)");
 }