예제 #1
0
        public override NUnit.Framework.Interfaces.TNode AddToXml(NUnit.Framework.Interfaces.TNode parentNode, bool recursive)
        {
            var thisNode = parentNode.AddElement(XmlElementName);

            this.PopulateTestNode(thisNode, recursive);
            thisNode.AddAttribute("seed", this.Seed.ToString());

            return(thisNode);
        }
예제 #2
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);
            }
        }