Ejemplo n.º 1
0
        public static void TestComplexStructures()
        {
            SeleniumLog log = SeleniumLog.Instance();
            string      str = "Hello World";
            Hashtable   ht  = new Hashtable();

            ht.Add("k1", "v1");
            ht.Add("k2", "v2");
            TestClass tc = new TestClass();

            datastruct1 DS  = new datastruct1();
            datastruct2 DS2 = new datastruct2();

            //tc.Method1(100, 250, DS);
            //Console.ReadLine();
            //log.WriteLine("Exploring DS");
            ///log.Indent();
            //log.Explore(DS2, comment: "Exporing DS structure");
            //log.Unindent();

            //log.WriteLine("Exploring DS2");
            //log.Indent();

            // It is the combination of these two calls that causes the indentation error

            log.Explore(ht, comment: "Exporing ht structure");
            log.Explore(DS, comment: "Exploring DS structure");
            log.Explore(DS2, comment: "Exploring DS2 structure");
            //log.Explore(DS, comment: "Exploring DS structure");
            //log.Unindent();

            //log.Explore(DS2, comment: "Exploring DS2 structure again");
            log.Explore(str, comment: "Exploring string");
        }
Ejemplo n.º 2
0
        public static void TestComplexStructures()
        {
            SeleniumLog log = SeleniumLog.Instance();
            string str = "Hello World";
            Hashtable ht = new Hashtable();
            ht.Add("k1", "v1");
            ht.Add("k2", "v2");
            TestClass tc = new TestClass();

            datastruct1 DS = new datastruct1();
            datastruct2 DS2 = new datastruct2();
            //tc.Method1(100, 250, DS);
            //Console.ReadLine();
            //log.WriteLine("Exploring DS");
            ///log.Indent();
            //log.Explore(DS2, comment: "Exporing DS structure");
            //log.Unindent();

            //log.WriteLine("Exploring DS2");
            //log.Indent();

            // It is the combination of these two calls that causes the indentation error

            log.Explore(ht, comment: "Exporing ht structure");
            log.Explore(DS, comment: "Exploring DS structure");
            log.Explore(DS2, comment: "Exploring DS2 structure");
            //log.Explore(DS, comment: "Exploring DS structure");
                //log.Unindent();

            //log.Explore(DS2, comment: "Exploring DS2 structure again");
            log.Explore(str, comment: "Exploring string");

        }