Пример #1
0
		public void InsertElementBefore()
		{
			treeView.SelectedNode = bodyTreeNode;
			treeViewContainer.AddElementDialogElementNamesReturned.Add("head");
			InsertElementBeforeCommand command = new InsertElementBeforeCommand();
			command.Owner = treeViewContainer;
			command.Run();
			
			XmlElement headElement = (XmlElement)doc.SelectSingleNode("/html/head");
			Assert.IsNotNull(headElement, "Expected a new head element to be inserted.");
			Assert.AreSame(headElement, doc.DocumentElement.FirstChild);
		}
 public void InsertElementBeforeWithUnknownOwner()
 {
     InsertElementBeforeCommand command = new InsertElementBeforeCommand();
     command.Owner = this;
     command.Run();
 }
 public void InsertElementBeforeWithNullOwner()
 {
     InsertElementBeforeCommand command = new InsertElementBeforeCommand();
     command.Run();
 }