本文整理匯總了C#中MonoTests.System.Web.UI.WebControls.PokerWizard.PokerAllowNavigationToStep方法的典型用法代碼示例。如果您正苦於以下問題:C# PokerWizard.PokerAllowNavigationToStep方法的具體用法?C# PokerWizard.PokerAllowNavigationToStep怎麽用?C# PokerWizard.PokerAllowNavigationToStep使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類MonoTests.System.Web.UI.WebControls.PokerWizard
的用法示例。
在下文中一共展示了PokerWizard.PokerAllowNavigationToStep方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Wizard_AllowNavigationToStep_NoIndexCheck
public void Wizard_AllowNavigationToStep_NoIndexCheck ()
{
PokerWizard wizard = new PokerWizard ();
Assert.IsTrue (wizard.PokerAllowNavigationToStep (0), "#A1-1");
Assert.IsTrue (wizard.PokerAllowNavigationToStep (10), "#A1-2");
Assert.IsTrue (wizard.PokerAllowNavigationToStep (-10), "#A1-3");
}
示例2: Wizard_AllowNavigationToStep
public void Wizard_AllowNavigationToStep ()
{
PokerWizard wizard = new PokerWizard ();
WizardStep step1 = new WizardStep ();
step1.ID = "step1";
step1.StepType = WizardStepType.Start;
WizardStep step2 = new WizardStep ();
step2.ID = "step2";
step2.StepType = WizardStepType.Step;
WizardStep step3 = new WizardStep ();
step3.ID = "step3";
step3.StepType = WizardStepType.Finish;
wizard.WizardSteps.Add (step1);
wizard.WizardSteps.Add (step2);
wizard.WizardSteps.Add (step3);
wizard.ActiveStepIndex = 0;
wizard.MoveTo (step3);
object o = wizard.PokerSaveControlState ();
wizard.PokerLoadControlState (o);
bool result = wizard.PokerAllowNavigationToStep (2);
Assert.AreEqual (true, result, "AllowNavigationToStep#1");
step3.AllowReturn = false;
result = wizard.PokerAllowNavigationToStep (2);
Assert.AreEqual (false, result, "AllowNavigationToStep#2");
}