public void PerformDataBinding_UsesAdapter() { MyDataBoundControl c = new MyDataBoundControl(); MyDataBoundControlAdapter a = new MyDataBoundControlAdapter();; c.controlAdapter = a; c.DataBind(); Assert.IsTrue(a.perform_data_binding_called, "PerformDataBinding_UsesAdapter"); }
[Category ("NotDotNet")] // Adapter binding does work on .NET but not by calling ResolveAdapter public void PerformDataBinding_UsesAdapter () { MyDataBoundControl c = new MyDataBoundControl (); MyDataBoundControlAdapter a = new MyDataBoundControlAdapter();; c.controlAdapter = a; c.DataBind (); Assert.IsTrue (a.perform_data_binding_called, "PerformDataBinding_UsesAdapter"); }
public void SetUp() { c = new MyDataBoundControl(); a = new MyDataBoundControlAdapter(c); }
public void SetUp () { c = new MyDataBoundControl (); a = new MyDataBoundControlAdapter (c); }