public static void DetailsView_PageIndex2_loadComplete (Page p) { PokerDetailsView fv = new PokerDetailsView (); p.Form.Controls.Add (fv); Assert.AreEqual (0, fv.PageIndex, "#100"); Assert.AreEqual (true, fv.GetInitialized (), "#101"); Assert.AreEqual (true, fv.GetRequiresDataBinding (), "#102"); fv.PageIndex = 2; Assert.AreEqual (2, fv.PageIndex, "#103"); Assert.AreEqual (true, fv.GetRequiresDataBinding (), "#104"); fv.PageIndex = -1; Assert.AreEqual (2, fv.PageIndex, "#105"); Assert.AreEqual (true, fv.GetRequiresDataBinding (), "#106"); }
public void DetailsView_PageIndex () { PokerDetailsView p = new PokerDetailsView (); Assert.AreEqual (0, p.PageIndex, "#00"); Assert.AreEqual (false, p.GetInitialized (), "#01"); Assert.AreEqual (false, p.GetRequiresDataBinding (), "#02"); p.PageIndex = 2; Assert.AreEqual (2, p.PageIndex, "#03"); Assert.AreEqual (false, p.GetRequiresDataBinding (), "#04"); p.PageIndex = -1; Assert.AreEqual (2, p.PageIndex, "#05"); Assert.AreEqual (false, p.GetRequiresDataBinding (), "#06"); }