Example #1
0
        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");
        }
Example #2
0
		[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);
		}