Esempio n. 1
0
        public void CreateNOCL()
        {
            InvalidWriteState cl = new InvalidWriteState();

            Assert.IsNull(cl.Settings, "#0");
            XmlWriter xw = XmlWriter.Create(cl);

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

            Assert.AreEqual(ConformanceLevel.Document, xw.Settings.ConformanceLevel, "#1");
            Assert.AreNotEqual(xw, cl, "#2");
            WriteState state = xw.WriteState;
        }
Esempio n. 3
0
		public void CreateNOCLSettingsCLFrag ()
		{
			InvalidWriteState cl = new InvalidWriteState ();
			XmlWriter xw = XmlWriter.Create (cl, new XmlWriterSettings () { ConformanceLevel = ConformanceLevel.Fragment });
			Assert.AreEqual (ConformanceLevel.Document, xw.Settings.ConformanceLevel, "#1");
			Assert.AreNotEqual (xw, cl, "#2");
			WriteState state = xw.WriteState;
		}
Esempio n. 4
0
		public void CreateNOCL ()
		{
			InvalidWriteState cl = new InvalidWriteState ();
			Assert.IsNull (cl.Settings, "#0");
			XmlWriter xw = XmlWriter.Create (cl);
			Assert.AreEqual (ConformanceLevel.Document, xw.Settings.ConformanceLevel, "#1");
			Assert.AreNotEqual (xw, cl, "#2");
			WriteState state = xw.WriteState;
		}