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); }
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); }
public void ScriptRuns() { InternalScript script = new InternalScript(MapFilePath); script.InsertDummyData(); script.Run(); }