public void TestNonEncryptedMemoryTable() { outputTable.encrypted = false; outputTable.csvfile = UETableFile; outputTable.tableName = UETableName; outputTable.write(); MemoryTable readTable = new MemoryTable(UETableFile); readTable.read(); dumpTable(readTable); }
public void Initialize() { tstobj = new TestObject(); tstobj.aDictionary.Add("Fourth", "Fourth String"); outputTable = new MemoryTable(EncryptedMemoryTableFile, true); outputTable.tableName = "Initial Encrypted Table: Written to: " + outputTable.csvfile; string[] hdr = { "Product", "Description", "Quantity", "Cost", "Total" }; string[] data1 = { "Honda", "Honda Civic", "2000", "200", "1000" }; string[] data2 = { "Acura", "Acura Integra", "5000", "450", "8000" }; string[] insertData = { "BMW", "Bonn Motor Works", "5000", "450", "8000" }; outputTable.addRow(hdr); outputTable.addRow(data1); outputTable.addRow(data2); outputTable.updateRow("Honda", "Description", "Honda Accord"); outputTable.updateRow(insertData); outputTable.write(); Console.WriteLine("Output Table written to file: " + outputTable.csvfile); }