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"); }
public void Test1() { int count = 0; List <SalesGroup> SalesDepartment = new List <SalesGroup>(); SalesGroup UsedCarSalesGroup = new SalesGroup("Used Cars Group"); UsedCarSalesGroup.SalesPersons.Add(new SalesPerson("Peter Anderson", Convert.ToDateTime("10/05/1980"))); count = UsedCarSalesGroup.SalesPersons.Count; UsedCarSalesGroup.SalesPersons[count - 1].SalesList.Add(new Sales("Toyota Camry 2005", 8000)); UsedCarSalesGroup.SalesPersons[count - 1].SalesList.Add(new Sales("Toyota Camry 2006", 8500)); UsedCarSalesGroup.SalesPersons[count - 1].SalesList.Add(new Sales("Toyota Corolla 2007", 8000)); UsedCarSalesGroup.SalesPersons[count - 1].SalesList.Add(new Sales("Toyota Camry 2008", 9000)); UsedCarSalesGroup.SalesPersons.Add(new SalesPerson("Timothy Williams", Convert.ToDateTime("10/05/1980"))); count = UsedCarSalesGroup.SalesPersons.Count; UsedCarSalesGroup.SalesPersons[count - 1].SalesList.Add(new Sales("VW Polo 2005", 8000)); UsedCarSalesGroup.SalesPersons[count - 1].SalesList.Add(new Sales("BMW 5 series 2006", 17000)); UsedCarSalesGroup.SalesPersons[count - 1].SalesList.Add(new Sales("Subaru Impreza 2005", 9000)); SeleniumLog log = SeleniumLog.Instance(); log.Explore(UsedCarSalesGroup); }