Ejemplo n.º 1
0
        public void CreateCLAuto()
        {
            ConformanceLevelAuto cl = new ConformanceLevelAuto();
            XmlWriter            xw = XmlWriter.Create(cl);

            Assert.AreEqual(ConformanceLevel.Document, xw.Settings.ConformanceLevel, "#1");
            Assert.AreNotEqual(xw, cl, "#2");
            WriteState state = xw.WriteState;
        }
Ejemplo n.º 2
0
        public void CreateCLAutoSettingsCLFrag()
        {
            ConformanceLevelAuto cl = new ConformanceLevelAuto();
            XmlWriter            xw = XmlWriter.Create(cl, new XmlWriterSettings()
            {
                ConformanceLevel = ConformanceLevel.Fragment
            });

            Assert.AreEqual(ConformanceLevel.Fragment, xw.Settings.ConformanceLevel, "#1");
            Assert.AreNotEqual(xw, cl, "#2");
            WriteState state = xw.WriteState;
        }
Ejemplo n.º 3
0
		public void CreateCLAutoSettingsCLFrag ()
		{
			ConformanceLevelAuto cl = new ConformanceLevelAuto ();
			XmlWriter xw = XmlWriter.Create (cl, new XmlWriterSettings () { ConformanceLevel = ConformanceLevel.Fragment });
			Assert.AreEqual (ConformanceLevel.Fragment, xw.Settings.ConformanceLevel, "#1");
			Assert.AreNotEqual (xw, cl, "#2");
			WriteState state = xw.WriteState;
		}
Ejemplo n.º 4
0
		public void CreateCLAuto ()
		{
			ConformanceLevelAuto cl = new ConformanceLevelAuto ();
			XmlWriter xw = XmlWriter.Create (cl);
			Assert.AreEqual (ConformanceLevel.Document, xw.Settings.ConformanceLevel, "#1");
			Assert.AreNotEqual (xw, cl, "#2");
			WriteState state = xw.WriteState;
		}