예제 #1
0
        public void LoadXMLs_Normal()
        {
            string path = folder + "\\sql";

            SQLProxy.LoadXMLs(path);
            Assert.IsTrue(SQLProxy.GetValue("DATA.COLLATIONS.GETDATASOURCE") != null);
            SQLData info = SQLProxy.GetValue("DATA.INNODBLOCKS.GET8PAGE");

            Assert.IsTrue(info != null);
            Assert.IsTrue(!string.IsNullOrWhiteSpace(info.CountSQL));
        }
예제 #2
0
        public void LoadXMLs_NodeRepeate()
        {
            string path = folder + "\\sqlNodeRepeate";

            try
            {
                SQLProxy.LoadXMLs(path);
                Assert.IsTrue(false);
            }
            catch (Exception ex)
            {
                ex.ToString();
            }
        }
예제 #3
0
        public void LoadXMLs_XMLError()
        {
            string path = folder + "\\sqlXmlError";

            try
            {
                SQLProxy.LoadXMLs(path);
                Assert.IsTrue(false);
            }
            catch (Exception ex)
            {
                ex.ToString();
            }
        }