Пример #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;
        }
Пример #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;
        }
Пример #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;
		}
Пример #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;
		}