public void ComboBox_Empty() { Gtk.ComboBox cbo = new Gtk.ComboBox(); int index = cbo.FindIndex("Test2"); Assert.AreEqual(-1, index, "The value should not be found and should return -1"); }
public void ComboBox_Partial() { Gtk.ComboBox cbo = new Gtk.ComboBox(new[] { "Test1", "Test2" }); int index = cbo.FindIndex("Test"); Assert.AreEqual(-1, index, "The value should not be found and should return -1"); }
public void ComboBox_NormalUsage() { Gtk.ComboBox cbo = new Gtk.ComboBox(new[] { "Test1", "Test2" }); int index = cbo.FindIndex("Test2"); Assert.AreEqual(1, index, "The value should be found at index 1"); }