public void Event_Duplicate_TriggersOnAddDelete() { _model.AddNew(); _model.CurrentIso = "pt"; bool eventTriggered = false; _model.ItemAddedOrDeleted += delegate { eventTriggered = true; }; _model.DuplicateCurrent(); Assert.IsTrue(eventTriggered); }
public void SingleWSMode_DuplicateCurrent_Throws() { _model = new WritingSystemSetupModel(new WritingSystemDefinition()); Assert.Throws <InvalidOperationException>( () => _model.DuplicateCurrent() ); }
public void SingleWSMode_DuplicateCurrent_Throws() { _model = new WritingSystemSetupModel(new WritingSystemDefinition()); Assert.Throws<InvalidOperationException>( () => _model.DuplicateCurrent() ); }
private void DuplicateButtonClick(object sender, EventArgs e) { _model.DuplicateCurrent(); }