Beispiel #1
0
		/// <summary>
		/// Add standard attributes and members to a test node.
		/// </summary>
		/// <param name="thisNode"></param>
		/// <param name="recursive"></param>
		protected void PopulateTestNode(XmlNode thisNode, bool recursive)
		{
			thisNode.AddAttribute("id", this.Id.ToString());
			thisNode.AddAttribute("name", this.Name);
			thisNode.AddAttribute("fullname", this.FullName);

			if (Properties.Count > 0)
				Properties.AddToXml(thisNode, recursive);
		}
Beispiel #2
0
 protected void PopulateTestNode(XmlNode thisNode, bool recursive)
 {
     XmlHelper.AddAttribute(thisNode, "id", Id.ToString());
     XmlHelper.AddAttribute(thisNode, "name", Name);
     XmlHelper.AddAttribute(thisNode, "fullname", FullName);
     if (Properties.Count > 0)
     {
         Properties.AddToXml(thisNode, recursive);
     }
 }
Beispiel #3
0
        private new void PopulateTestNode(NUnit.Framework.Interfaces.TNode thisNode, bool recursive)
        {
            thisNode.AddAttribute("id", this.Id.ToString());
            thisNode.AddAttribute("name", this.Name);
            thisNode.AddAttribute("fullname", this.FullName);
            thisNode.AddAttribute("methodname", this.MethodName);
            thisNode.AddAttribute("classname", this.ClassName);
            thisNode.AddAttribute("runstate", this.RunState.ToString());

            if (Properties.Keys.Count > 0)
            {
                Properties.AddToXml(thisNode, recursive);
            }
        }
Beispiel #4
0
        /// <summary>
        /// Returns an XmlNode representing the current result after
        /// adding it as a child of the supplied parent node.
        /// </summary>
        /// <param name="parentNode">The parent node.</param>
        /// <param name="recursive">If true, descendant results are included</param>
        /// <returns></returns>
        public virtual XmlNode AddToXml(XmlNode parentNode, bool recursive)
        {
            var thisNode = parentNode.AddElement(XmlElementName);

            thisNode.AddAttribute("id", Id.ToString());
            thisNode.AddAttribute("name", Name);
            thisNode.AddAttribute("fullname", FullName);

            if (Properties.Count > 0)
            {
                Properties.AddToXml(thisNode, recursive);
            }

            return(thisNode);
        }
Beispiel #5
0
        protected void PopulateTestNode(TNode thisNode, bool recursive)
        {
            thisNode.AddAttribute("id", this.Id.ToString());
            thisNode.AddAttribute("name", this.Name);
            thisNode.AddAttribute("fullname", this.FullName);
            if (this.MethodName != null)
            {
                thisNode.AddAttribute("methodname", this.MethodName);
            }
            if (this.ClassName != null)
            {
                thisNode.AddAttribute("classname", this.ClassName);
            }
            thisNode.AddAttribute("runstate", this.RunState.ToString());

            if (Properties.Keys.Count > 0)
            {
                Properties.AddToXml(thisNode, recursive);
            }
        }