Esempio n. 1
0
        private void test01a()
        {
            location = ExStorageTests.location;
            loc      = ExStorageTests.loc;

            // AppRibbon.idx = AppRibbon.idx++;

            string ms  = AppRibbon.getTestMsg1s();
            string m1  = AppRibbon.appR.getTestMsg1();
            string m1t = AppRibbon.appR.testMessage1;

            string mxs = ExStoreMgr.ms;
            string mx1 = XsMgr.m1;

            string msg2 = $"messages| idx| {AppRibbon.idx}\n"
                          + $"rib static| {ms}\n"
                          + $"rib static indirect meth| {m1}\n"
                          + $"rib static indirect prop| {m1t}\n"
                          + $" xs static| {mxs}\n"
                          + $" xs static indirect prop| {mx1}\n"
                          + $"\n"
                          + $"static tests\n"
                          + $"xtest guid| {xsTest.guid}\n"
                          + $"xtest sub-guid| {ExStorageTests.staticTest01.guid}";

            xsTest.taskDialogWarning_Ok("Static test",
                                        "Test static objects", msg2);
        }
Esempio n. 2
0
        private Result test02()
        {
            string result;
            string vendorId = "PRO.CYBERSTUDIO";

            result = xsTest.ReadAll(vendorId);

            xsTest.taskDialogWarning_Ok("read schema by vendor id",
                                        $"read by| {vendorId}", result);

            return(Result.Succeeded);
        }
Esempio n. 3
0
        private void test01b()
        {
            IList <Schema> schemaList = Schema.ListSchemas();

            string msg1 = "Read App-Ribbon Info";

            // AppRibbon.idx = AppRibbon.idx++;

            string ms  = AppRibbon.getTestMsg1s();
            string m1s = AppRibbon.testMessageS;
            string m1  = AppRibbon.appR.getTestMsg1();
            string m1t = AppRibbon.appR.testMessage1;

            string mxs = ExStoreMgr.ms;
            string mx1 = XsMgr.m1;

            string ixs = ExStoreMgr.idx.ToString();
            string ix1 = XsMgr.mi.ToString();

            string xm1 = xm.mx;

            string msg2 = $"info| {idx2}\n"
                          // + $"idx| {AppRibbon.idx}\n"
                          // + $"rib static| {ms}\n"
                          // + $"rib static| {m1s}\n"
                          // + $"rib static indirect meth| {m1}\n"
                          // + $"rib static indirect prop| {m1t}\n"
                          // + $" xs index static| {ixs}\n"
                          // + $" xs index indirect| {ix1}\n"
                          // + $" xs static| {mxs}\n"
                          // + $" xs static indirect prop| {mx1}\n\n"
                          + $" xm not static| {xm1} ({xm.idx2x})"
                          + "\n";

            string msg3;

            foreach (Schema s in schemaList)
            {
                msg3  = s.GUID.ToString();
                msg2 += $"{s.SchemaName} ::   {msg3.Substring(msg3.Length-8, 8)}\n";
            }

            xsTest.taskDialogWarning_Ok("schema lookup",
                                        $"{msg1}",
                                        $"\nSchema|\n{msg2}");
        }
Esempio n. 4
0
        private void test01b()
        {
            IList <Schema> schemaList = Schema.ListSchemas();

            string msg1 = "List of Schema";

            string msg2 = "";

            string msg3;

            foreach (Schema s in schemaList)
            {
                msg3  = s.GUID.ToString();
                msg2 += $"{s.SchemaName} ::   {msg3.Substring(msg3.Length-8, 8)}\n";
            }



            xsTest.taskDialogWarning_Ok("schema lookup",
                                        $"{msg1}",
                                        $"\nSchema|\n{msg2}");
        }