本文整理汇总了C#中MonoTests.System.Web.UI.WebControls.PokerWizard.GetStepType方法的典型用法代码示例。如果您正苦于以下问题:C# PokerWizard.GetStepType方法的具体用法?C# PokerWizard.GetStepType怎么用?C# PokerWizard.GetStepType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MonoTests.System.Web.UI.WebControls.PokerWizard
的用法示例。
在下文中一共展示了PokerWizard.GetStepType方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Wizard_Steps
public void Wizard_Steps ()
{
PokerWizard w = new PokerWizard ();
Assert.AreEqual (-1, w.ActiveStepIndex, "ActiveStepIndex on no steps");
w.WizardSteps.Add (new WizardStep ());
Assert.IsNotNull (w.WizardSteps[0].Wizard, "WizardStep.Wizard");
Assert.AreEqual (WizardStepType.Finish, w.GetStepType (w.WizardSteps[0], 0), "WizardStepType.Finish");
}
示例2: Wizard_GetStepType
public void Wizard_GetStepType ()
{
PokerWizard wizard = new PokerWizard ();
WizardStep step1 = new WizardStep ();
step1.ID = "step1";
step1.StepType = WizardStepType.Start;
wizard.WizardSteps.Add (step1);
wizard.ActiveStepIndex = 0;
WizardStepType result = wizard.GetStepType (wizard.ActiveStep, wizard.ActiveStepIndex);
Assert.AreEqual (WizardStepType.Start, result, "GetStepType");
}