/// <summary> /// Returns a new MockAddXmlNodeDialog for testing. /// </summary> protected override IAddXmlNodeDialog CreateAddElementDialog(string[] elementNames) { MockAddXmlNodeDialog dialog = new MockAddXmlNodeDialog(); dialog.SetNamesToReturn(addElementDialogElementNamesReturned.ToArray()); dialog.SetDialogResult(addElementDialogResult); return(dialog); }
/// <summary> /// Returns a new MockAddXmlNodeDialog for testing. /// </summary> protected override IAddXmlNodeDialog CreateAddAttributeDialog(string[] attributeNames) { MockAddXmlNodeDialog dialog = new MockAddXmlNodeDialog(); dialog.SetNamesToReturn(AddAttributeDialogAttributeNamesReturned.ToArray()); dialog.SetDialogResult(AddAttributeDialogResult); return(dialog); }
/// <summary> /// Returns a new MockAddXmlNodeDialog for testing. /// </summary> protected override IAddXmlNodeDialog CreateAddAttributeDialog(string[] attributeNames) { MockAddXmlNodeDialog dialog = new MockAddXmlNodeDialog(); dialog.SetNamesToReturn(addAttributeDialogAttributeNamesReturned.ToArray()); dialog.SetDialogResult(addAttributeDialogResult); return dialog; }
/// <summary> /// Returns a new MockAddXmlNodeDialog for testing. /// </summary> protected override IAddXmlNodeDialog CreateAddElementDialog(string[] elementNames) { MockAddXmlNodeDialog dialog = new MockAddXmlNodeDialog(); dialog.SetNamesToReturn(AddElementDialogElementNamesReturned.ToArray()); dialog.SetDialogResult(AddElementDialogResult); return dialog; }