using System;
using System.ComponentModel;
using System.Xml;

namespace QC.CompareTestTree;

[Serializable]
public class CTSTestProperties : TestProperties
{
	private string dllName = "";

	[Description("DLL name to which test belongs.")]
	[ReadOnly(true)]
	[Category("Settings")]
	public string DLLName
	{
		get
		{
			return dllName;
		}
		set
		{
			dllName = value;
		}
	}

	public CTSTestProperties()
	{
	}

	public CTSTestProperties(object ParamColl)
	{
	}

	internal void CompareProperties(string XmlTagName, CTSTestProperties baseProperties, string overrideAttrib, ref XmlDocument xmlDoc, ref XmlElement theTestNode)
	{
		XmlElement parentNode = xmlDoc.CreateElement(XmlTagName);
		parentNode.SetAttribute("NodeType", "FolderProperty");
		CompareProperties(baseProperties, overrideAttrib, ref xmlDoc, ref parentNode);
		CommonFunctions.RootDoc = xmlDoc;
		CommonFunctions.ParentNode = parentNode;
		CommonFunctions.AddElement("DLLName", DLLName, baseProperties.DLLName, overrideAttrib);
		XmlElement rootNode = xmlDoc.CreateElement("Statistics");
		Statistics.DetermineStatics(parentNode, ref xmlDoc, ref rootNode);
		parentNode.AppendChild(rootNode);
		theTestNode.AppendChild(parentNode);
	}
}
