public void Event_ItemSelectedClearSelection_TriggersSelectionChanged()
        {
            _model.AddNew();
            _model.CurrentIso = "pt";
            bool eventTriggered = false;

            _model.CurrentIndex      = 0;
            _model.SelectionChanged += delegate { eventTriggered = true; };
            _model.ClearSelection();
            Assert.IsTrue(eventTriggered);
        }
 public void SingleWSMode_ClearSelectionThrows()
 {
     _model = new WritingSystemSetupModel(new WritingSystemDefinition());
     Assert.Throws <InvalidOperationException>(
         () => _model.ClearSelection()
         );
 }
		public void SingleWSMode_ClearSelectionThrows()
		{
			_model = new WritingSystemSetupModel(new WritingSystemDefinition());
			Assert.Throws<InvalidOperationException>(
				() => _model.ClearSelection()
			);
		}