public void TestRemoveRowTableFile1()
        {
            var tabFileWrite = new TabFileWriter<TestWrite>();
            var newRow = tabFileWrite.NewRow();
            newRow.TestColumn1 = "Test String";
            newRow.TestColumn2 = 123123;
            tabFileWrite.RemoveRow(newRow.RowNumber);  // remove row 1
            tabFileWrite.Save("./test_write.bytes");

            var tabFileRead = TableFile<TestWrite>.LoadFromFile("./test_write.bytes");
            Assert.AreEqual(tabFileRead.GetHeight(), 0);
        }
Beispiel #2
0
        public void TestRemoveRowTableFile1()
        {
            var tabFileWrite = new TabFileWriter <TestWrite>();
            var newRow       = tabFileWrite.NewRow();

            newRow.TestColumn1 = "Test String";
            newRow.TestColumn2 = 123123;
            tabFileWrite.RemoveRow(newRow.RowNumber);  // remove row 1
            tabFileWrite.Save("./test_write.bytes");


            var tabFileRead = TableFile <TestWrite> .LoadFromFile("./test_write.bytes");

            Assert.AreEqual(tabFileRead.GetHeight(), 0);
        }