void GetFoldsWhenShowAttributesIsSetToTrue(string xml)
		{
			helper = new XmlFoldParserHelper();
			helper.Options.ShowAttributesWhenFolded = true;
			
			helper.CreateParser();
			helper.GetFolds(xml);
		}
        public void GetFolds_XmlOnlyHasSingleLineComment_NullReturned()
        {
            string xml = "<!-- single line comment -->";
            helper = new XmlFoldParserHelper();
            helper.CreateParser();
            helper.GetFolds(xml);

            Assert.IsNull(helper.Folds);
        }
		public void Init()
		{
			string xml = 
				"<root>\r\n" +
				"</root>";
			
			helper = new XmlFoldParserHelper();
			helper.CreateParser();
			helper.GetFolds(xml);
		}
        public void Init()
        {
            string xml =
                "<xs:schema xmlns:xs='schema'>\r\n" +
                "</xs:schema>";

            helper = new XmlFoldParserHelper();
            helper.CreateParser();
            helper.GetFolds(xml);
        }
        public void Init()
        {
            string xml =
                "<!-- first line\r\n" +
                "second line -->\r\n" +
                "<a />";

            helper = new XmlFoldParserHelper();
            helper.CreateParser();
            helper.GetFolds(xml);
        }
		public void GetFolds_WhenInvalidXml_DoesNotThrowException()
		{
			string xml =
				"<root\r\n" +
				"    <child>\r\n" +
				"</root>";
	
			helper = new XmlFoldParserHelper();
			helper.CreateParser();
			Assert.DoesNotThrow(delegate { helper.GetFolds(xml); });
		}
		public void GetFolds_RootElementOnlyWithNoAttributes_FoldNameIsElementNameOnlyWithNoExtraSpaceAtTheEnd()
		{
			string xml = 
				"<root>\r\n" +
				"</root>";
			
			helper = new XmlFoldParserHelper();
			helper.CreateParser();
			helper.GetFolds(xml);
			
			string name = helper.GetFirstFoldName();
		
			Assert.AreEqual("<root>", name);
		}
		void GetFoldsWhenShowAttributesSetToFalse()
		{
			helper = new XmlFoldParserHelper();
			helper.Options.ShowAttributesWhenFolded = false;
			GetFolds();
		}