public void IsHighlighted_EmptyFwListBox_ReturnsFalse() { using (var listBox = new FwListBox()) { using (var innerFwListBox = new InnerFwListBox(listBox)) { // The Test Assert.AreEqual(false, innerFwListBox.IsHighlighted(0)); } } }
public void ShowHighlight_EmptyFwListBox_ReturnsTrue() { using (var listBox = new FwListBox()) { using (var innerFwListBox = new InnerFwListBox(listBox)) { // The Test Assert.AreEqual(true, innerFwListBox.ShowHighlight); } } }
public void WritingSystemCode_EmptyFwListBox_DoesNotThrowException() { using (var listBox = new FwListBox()) { using (var innerFwListBox = new InnerFwListBox(listBox)) { // The Test Assert.GreaterOrEqual(innerFwListBox.WritingSystemCode, 0); } } }
public void SetShowHighlight_EmptyFwListBox_ShouldBeSetToFalse() { using (var listBox = new FwListBox()) { using (var innerFwListBox = new InnerFwListBox(listBox)) { // The Test innerFwListBox.ShowHighlight = false; Assert.AreEqual(false, innerFwListBox.ShowHighlight); } } }
public void IsHighlighted_CollectionWithSingleElement_ReturnsTrue() { using (var listBox = new FwListBox()) { using (var innerFwListBox = new InnerFwListBox(listBox)) { ITsString testString1 = TsStringHelper.MakeTSS("test1", m_hvoEnglishWs); listBox.Items.Add(testString1); innerFwListBox.MakeRoot(); listBox.HighlightedIndex = 0; // The Test Assert.AreEqual(true, innerFwListBox.IsHighlighted(0)); } } }