public void ReadNvdlNvdl()
 {
     using (TextReader r = File.OpenText("Test/XmlFiles/nvdl.nvdl")) {
         NvdlRules rules = NvdlReader.Read(
             new XmlTextReader(r));
     }
 }
Esempio n. 2
0
 public void ReadNvdlNvdl()
 {
     using (TextReader r = File.OpenText(TestResourceHelper.GetFullPathOfResource("Test/XmlFiles/nvdl.nvdl"))) {
         NvdlRules rules = NvdlReader.Read(
             new XmlTextReader(r));
     }
 }
Esempio n. 3
0
        static void ValidateNvdl(string [] args)
        {
            XmlTextReader nvdlxtr = new XmlTextReader(args [1]);
            NvdlRules     nvdl    = NvdlReader.Read(nvdlxtr);

            nvdlxtr.Close();
            for (int i = 2; i < args.Length; i++)
            {
                XmlTextReader        xtr = new XmlTextReader(args [i]);
                NvdlValidatingReader nvr = new NvdlValidatingReader(xtr, nvdl);
                while (!nvr.EOF)
                {
                    nvr.Read();
                }
                xtr.Close();
            }
        }
        public void ValidateNvdlNvdl()
        {
            NvdlRules rules = null;
            string    path  = "Test/XmlFiles/nvdl.nvdl";

            using (TextReader r = File.OpenText(path)) {
                rules = NvdlReader.Read(
                    new XmlTextReader(path, r));
            }
            using (TextReader r = File.OpenText(path)) {
                XmlTextReader        xtr = new XmlTextReader(path, r);
                NvdlValidatingReader vr  = new NvdlValidatingReader(xtr, rules);
                while (!vr.EOF)
                {
                    vr.Read();
                }
            }
        }