public void BoundField_GetValueDataItem() { PokerBoundField bf = new PokerBoundField(); ControlWithDataItem ds = new ControlWithDataItem("test"); bf.DataField = PokerBoundField.ThisExpression; string result = (string)bf.DoGetValue(ds); Assert.AreEqual("test", result, "GetValueFromIDataItemContainer"); }
public void BoundField_GetValueDataItem () { PokerBoundField bf = new PokerBoundField (); ControlWithDataItem ds = new ControlWithDataItem ("test"); bf.DataField = PokerBoundField.ThisExpression; string result = (string) bf.DoGetValue (ds); Assert.AreEqual ("test", result, "GetValueFromIDataItemContainer"); }