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;
        }
        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;
        }
Exemple #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;
		}
Exemple #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;
		}