protected override void Initialize()
        {
            Nodes.Clear();

            // Add methods.
            CodeCoveragePropertyCollection properties = new CodeCoveragePropertyCollection();

            foreach (CodeCoverageMethod method in Methods)
            {
                // method name that is generated by compiler, contains "__" (double underscore)
                if (!method.Name.Contains("__"))
                {
                    if (method.IsProperty)
                    {
                        properties.Add(method);
                    }
                    else
                    {
                        CodeCoverageMethodTreeNode node = new CodeCoverageMethodTreeNode(method);
                        node.AddTo(this);
                    }
                }
            }

            // Add properties.s
            foreach (CodeCoverageProperty property in properties)
            {
                CodeCoveragePropertyTreeNode node = new CodeCoveragePropertyTreeNode(property);
                node.AddTo(this);
            }

            // Sort nodes.
            SortChildNodes();
        }
        protected override void Initialize()
        {
            Nodes.Clear();

            // Add methods.
            CodeCoveragePropertyCollection properties = new CodeCoveragePropertyCollection();

            foreach (CodeCoverageMethod method in Methods)
            {
                if (method.IsProperty)
                {
                    properties.Add(method);
                }
                else
                {
                    CodeCoverageMethodTreeNode node = new CodeCoverageMethodTreeNode(method);
                    node.AddTo(this);
                }
            }

            // Add properties.s
            foreach (CodeCoverageProperty property in properties)
            {
                CodeCoveragePropertyTreeNode node = new CodeCoveragePropertyTreeNode(property);
                node.AddTo(this);
            }

            // Sort nodes.
            SortChildNodes();
        }
		protected override void Initialize()
		{
			Nodes.Clear();

			// Add methods.
			CodeCoveragePropertyCollection properties = new CodeCoveragePropertyCollection();
			foreach (CodeCoverageMethod method in Methods) {
				// method name that is generated by compiler, contains "__" (double underscore)
				if ( !method.Name.Contains("__") ) {
					if (method.IsProperty) {
						properties.Add(method);
					} else {
						CodeCoverageMethodTreeNode node = new CodeCoverageMethodTreeNode(method);
						node.AddTo(this);
					}
				}
			}
			
			// Add properties.s
			foreach (CodeCoverageProperty property in properties) {
				CodeCoveragePropertyTreeNode node = new CodeCoveragePropertyTreeNode(property);
				node.AddTo(this);
			}
			
			// Sort nodes.
			SortChildNodes();
		}
		public void SetUpFixture()
		{
			properties = new CodeCoveragePropertyCollection();
			getterMethod = new CodeCoverageMethod("get_Count", "MyTests", MethodAttributes.SpecialName);
			setterMethod = new CodeCoverageMethod("set_Count", "MyTests", MethodAttributes.SpecialName);
			
			properties.Add(getterMethod);
			properties.Add(setterMethod);
			
			if (properties.Count > 0) {
				property = properties[0];
			}
		}
		public void SetUpFixture()
		{
			properties = new CodeCoveragePropertyCollection();
			XElement getterElement = CreatePropertyGetter("MyTests", "Count");
			getterMethod = new CodeCoverageMethod("MyTests", getterElement);
			XElement setterElement = CreatePropertySetter("MyTests", "Count");
			setterMethod = new CodeCoverageMethod("MyTests", setterElement);
			
			properties.Add(getterMethod);
			properties.Add(setterMethod);
			
			if (properties.Count > 0) {
				property = properties[0];
			}
		}
		protected override void Initialize()
		{
			Nodes.Clear();

			// Add methods.
			CodeCoveragePropertyCollection properties = new CodeCoveragePropertyCollection();
			foreach (CodeCoverageMethod method in Methods) {
				if (method.IsProperty) {
					properties.Add(method);
				} else {
					CodeCoverageMethodTreeNode node = new CodeCoverageMethodTreeNode(method);
					node.AddTo(this);
				}
			}
			
			// Add properties.s
			foreach (CodeCoverageProperty property in properties) {
				CodeCoveragePropertyTreeNode node = new CodeCoveragePropertyTreeNode(property);
				node.AddTo(this);
			}
			
			// Sort nodes.
			SortChildNodes();
		}