public void DataSourceView_RaiseUnsupportedCapabilityError3() { PokerDataSource ds = new PokerDataSource(); PokerDataSourceView view = new PokerDataSourceView(ds, "View"); view.DoRaiseUnsupportedCapabilityError(DataSourceCapabilities.RetrieveTotalRowCount); }
public void DataSourceControl_GetViewNames() { PokerDataSource ds = new PokerDataSource(); ICollection viewnames = ds.DoGetViewNames(); Assert.IsNull(viewnames, "GetViewNames#1"); }
public void DataSourceView_ExecuteInsert() { PokerDataSource ds = new PokerDataSource(); PokerDataSourceView view = new PokerDataSourceView(ds, "View"); view.DoExecuteInsert(null); }
public void DataSourceView_RaiseUnsupportedCapabilityError4() { PokerDataSource ds = new PokerDataSource(); PokerDataSourceView view = new PokerDataSourceView(ds, "View"); view.DoRaiseUnsupportedCapabilityError(DataSourceCapabilities.Sort); }
public void DataSourceView_ExecuteUpdate() { PokerDataSource ds = new PokerDataSource(); PokerDataSourceView view = new PokerDataSourceView(ds, "View"); view.DoExecuteUpdate(null, null, null); }
public void DataSourceControl_HasControls() { //Always return false PokerDataSource ds = new PokerDataSource(); Assert.AreEqual(false, ds.HasControls(), "HasControls"); }
public void DataSourceControl_CreateControlCollection() { PokerDataSource ds = new PokerDataSource(); ControlCollection collection = ds.DoCreateControlCollection(); Assert.IsNotNull(collection, "CreateControlCollection#1"); Assert.AreEqual(0, collection.Count, "CreateControlCollection#2"); }
public void DataSourceControl_Events() { PokerDataSource ds = new PokerDataSource(); ((IDataSource)ds).DataSourceChanged += new EventHandler(Eventchecker); ds.DoRaiseDataSourceChangedEvent(new EventArgs()); Eventassert("RaiseDataSourceChangedEventFail"); }
public void DataSourceControl_DefaultProperty () { PokerDataSource ds = new PokerDataSource (); Assert.AreEqual (String.Empty, ds.ClientID, "ClientID"); Assert.IsNotNull (ds.Controls, "Controls#1"); Assert.AreEqual ( 0 , ds.Controls.Count , "Controls#2"); Assert.AreEqual (false, ds.Visible, "Visible"); }
public void DataSourceControl_Controls() { Button bt = new Button(); bt.ID = "bt"; PokerDataSource ds = new PokerDataSource(); ds.Controls.Add(bt); }
public void DataSourceControl_DefaultProperty() { PokerDataSource ds = new PokerDataSource(); Assert.AreEqual(String.Empty, ds.ClientID, "ClientID"); Assert.IsNotNull(ds.Controls, "Controls#1"); Assert.AreEqual(0, ds.Controls.Count, "Controls#2"); Assert.AreEqual(false, ds.Visible, "Visible"); }
public void DataSourceView_Events2() { PokerDataSource ds = new PokerDataSource(); PokerDataSourceView view = new PokerDataSourceView(ds, "View"); view.DataSourceViewChanged += new EventHandler(Eventchecker); ds.DoRaiseDataSourceChangedEvent(new EventArgs()); Eventassert("DataSourceViewChanged"); }
public void DataSourceView_Delete() { // ExecuteDelete must be implemented at first Hashtable table = new Hashtable(); PokerDataSource ds = new PokerDataSource(); PokerDataSourceView view = new PokerDataSourceView(ds, "View"); table.Add("ID", "1000"); view.Delete(table, table, null); }
public void DataSourceView_Select() { // ExecuteSelect must be implemented at first Hashtable table = new Hashtable(); PokerDataSource ds = new PokerDataSource(); PokerDataSourceView view = new PokerDataSourceView(ds, "View"); table.Add("ID", "1000"); view.Select(new DataSourceSelectArguments(), null); }
public void DataSourceView_DefaultProperty() { PokerDataSource ds = new PokerDataSource(); PokerDataSourceView view = new PokerDataSourceView(ds, "View"); Assert.AreEqual(false, view.CanDelete, "CanDelete"); Assert.AreEqual(false, view.CanInsert, "CanInsert"); Assert.AreEqual(false, view.CanPage, "CanPage"); Assert.AreEqual(false, view.CanRetrieveTotalRowCount, "CanRetrieveTotalRowCount"); Assert.AreEqual(false, view.CanSort, "CanSort"); Assert.AreEqual(false, view.CanUpdate, "CanUpdate"); Assert.AreEqual("View", view.Name, "Name"); //protected properties EventHandlerList list = view.events; Assert.IsNotNull(list, "Events"); }
public void DataSourceControl_Events () { PokerDataSource ds = new PokerDataSource (); ((IDataSource) ds).DataSourceChanged += new EventHandler (Eventchecker); ds.DoRaiseDataSourceChangedEvent (new EventArgs ()); Eventassert("RaiseDataSourceChangedEventFail"); }
public void DataSourceControl_VisibleException () { PokerDataSource ds = new PokerDataSource (); ds.Visible = true; }
public void DataSourceControl_DefaultPropertyNotWorking () { PokerDataSource ds = new PokerDataSource (); Assert.AreEqual (false, ds.EnableTheming, "EnableTheming"); }
public void DataSourceControl_DefaultPropertyNotWorking() { PokerDataSource ds = new PokerDataSource(); Assert.AreEqual(false, ds.EnableTheming, "EnableTheming"); }
public void DataSourceControl_HasControls () { //Always return false PokerDataSource ds = new PokerDataSource (); Assert.AreEqual (false, ds.HasControls (), "HasControls"); }
public void DataSourceView_ExecuteUpdate () { PokerDataSource ds = new PokerDataSource (); PokerDataSourceView view = new PokerDataSourceView (ds, "View"); view.DoExecuteUpdate (null, null, null); }
public void DataSourceView_RaiseUnsupportedCapabilityError3 () { PokerDataSource ds = new PokerDataSource (); PokerDataSourceView view = new PokerDataSourceView (ds, "View"); view.DoRaiseUnsupportedCapabilityError (DataSourceCapabilities.RetrieveTotalRowCount); }
public void DataSourceControl_GetViewNames () { PokerDataSource ds = new PokerDataSource (); ICollection viewnames = ds.DoGetViewNames (); Assert.IsNull (viewnames, "GetViewNames#1"); }
public void DataSourceView_Delete() { // ExecuteDelete must be implemented at first Hashtable table = new Hashtable (); PokerDataSource ds = new PokerDataSource (); PokerDataSourceView view = new PokerDataSourceView (ds, "View"); table.Add ("ID", "1000"); view.Delete(table, table, null); }
public void DataSourceView_RaiseUnsupportedCapabilityError4 () { PokerDataSource ds = new PokerDataSource (); PokerDataSourceView view = new PokerDataSourceView (ds, "View"); view.DoRaiseUnsupportedCapabilityError (DataSourceCapabilities.Sort); }
public void DataSourceView_Select () { // ExecuteSelect must be implemented at first Hashtable table = new Hashtable (); PokerDataSource ds = new PokerDataSource (); PokerDataSourceView view = new PokerDataSourceView (ds, "View"); table.Add ("ID", "1000"); view.Select(new DataSourceSelectArguments(), null); }
public void DataSourceControl_Focus () { PokerDataSource ds = new PokerDataSource (); ds.Focus (); }
public void DataSourceView_DefaultProperty () { PokerDataSource ds = new PokerDataSource (); PokerDataSourceView view = new PokerDataSourceView (ds, "View"); Assert.AreEqual (false, view.CanDelete, "CanDelete"); Assert.AreEqual (false, view.CanInsert, "CanInsert"); Assert.AreEqual (false, view.CanPage, "CanPage"); Assert.AreEqual (false, view.CanRetrieveTotalRowCount, "CanRetrieveTotalRowCount"); Assert.AreEqual (false, view.CanSort, "CanSort"); Assert.AreEqual (false, view.CanUpdate, "CanUpdate"); Assert.AreEqual ("View", view.Name, "Name"); //protected properties EventHandlerList list = view.events; Assert.IsNotNull (list, "Events"); }
public void DataSourceControl_EnableThemingException () { PokerDataSource ds = new PokerDataSource (); ds.EnableTheming = true; }
public void DataSourceControl_EnableThemingException() { PokerDataSource ds = new PokerDataSource(); ds.EnableTheming = true; }
public void DataSourceControl_Controls () { Button bt = new Button (); bt.ID = "bt"; PokerDataSource ds = new PokerDataSource (); ds.Controls.Add (bt); }
public void DataSourceControl_VisibleException() { PokerDataSource ds = new PokerDataSource(); ds.Visible = true; }
public void DataSourceControl_CreateControlCollection () { PokerDataSource ds = new PokerDataSource (); ControlCollection collection = ds.DoCreateControlCollection (); Assert.IsNotNull (collection, "CreateControlCollection#1"); Assert.AreEqual (0, collection.Count ,"CreateControlCollection#2"); }
public void DataSourceView_Events2 () { PokerDataSource ds = new PokerDataSource (); PokerDataSourceView view = new PokerDataSourceView (ds, "View"); view.DataSourceViewChanged += new EventHandler (Eventchecker); ds.DoRaiseDataSourceChangedEvent (new EventArgs ()); Eventassert ("DataSourceViewChanged"); }
public void DataSourceControl_Focus() { PokerDataSource ds = new PokerDataSource(); ds.Focus(); }
public void DataSourceView_ExecuteInsert () { PokerDataSource ds = new PokerDataSource (); PokerDataSourceView view = new PokerDataSourceView (ds, "View"); view.DoExecuteInsert (null); }