Ejemplo n.º 1
0
        public void InternalScript_TableResult_Should_ReturnFalse_IfThereAreNoRecords()
        {
            //Create a new table with no records (or columns)

            Table testTable = (Table)doc.NewTable("test table",Type.Missing,true);
            InternalScript script = new InternalScript(MapFilePath);
            script.TableHasRecords(testTable).ShouldBe(false);
        }
Ejemplo n.º 2
0
        public void InternalScript_TableResult_Should_ReturnTrue_IfThereAreRecords()
        {
            //Create a new table with no records (or columns)

            Table testTable = (Table)doc.NewTable("test table", Type.Missing, true);
            Column col = testTable.ColumnSet.NewColumn();
            col.Name = "OID";
            testTable.ColumnSet.Add(col);
            Query q = doc.NewQuery("q");
            q.Text = "Insert into [test table](OID) values (1)";
            q.RunEx(true);
            InternalScript script = new InternalScript(MapFilePath);
            script.TableHasRecords(testTable).ShouldBe(true);
        }
Ejemplo n.º 3
0
 public void ScriptRuns()
 {
     InternalScript script = new InternalScript(MapFilePath);
     script.InsertDummyData();
     script.Run();
 }