本文整理汇总了C#中MonoTests.System.Web.UI.WebControls.PokerWizard类的典型用法代码示例。如果您正苦于以下问题:C# PokerWizard类的具体用法?C# PokerWizard怎么用?C# PokerWizard使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PokerWizard类属于MonoTests.System.Web.UI.WebControls命名空间,在下文中一共展示了PokerWizard类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Wizard_MoveTo
public void Wizard_MoveTo ()
{
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);
Assert.AreEqual (2, wizard.ActiveStepIndex, "MoveToStep3");
wizard.MoveTo (step2);
Assert.AreEqual (1, wizard.ActiveStepIndex, "MoveToStep2");
wizard.MoveTo (step1);
Assert.AreEqual (0, wizard.ActiveStepIndex, "MoveToStep1");
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:23,代码来源:WizardTest.cs
示例2: _StartTypeRendering
public static void _StartTypeRendering (Page p)
{
LiteralControl lcb = new LiteralControl (HtmlDiff.BEGIN_TAG);
LiteralControl lce = new LiteralControl (HtmlDiff.END_TAG);
PokerWizard w = new PokerWizard ();
WizardStep ws1 = new WizardStep ();
WizardStep ws2 = new WizardStep ();
ws1.ID = "step1";
ws1.StepType = WizardStepType.Start;
ws1.Controls.Add (new LiteralControl ("Start"));
ws2.ID = "step2";
ws2.StepType = WizardStepType.Finish;
ws2.Controls.Add (new LiteralControl ("Finish"));
w.StartNextButtonImageUrl = "StartNextButtonImageUrl";
w.StartNextButtonStyle.BackColor = Color.Red;
w.StartNextButtonText = "StartNextButtonText";
w.StartNextButtonType = ButtonType.Button;
w.WizardSteps.Add (ws1);
w.WizardSteps.Add (ws2);
p.Controls.Add (lcb);
p.Controls.Add (w);
p.Controls.Add (lce);
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:27,代码来源:WizardTest.cs
示例3: _StepNavigationTemplate
public static void _StepNavigationTemplate (Page p)
{
LiteralControl lcb = new LiteralControl (HtmlDiff.BEGIN_TAG);
LiteralControl lce = new LiteralControl (HtmlDiff.END_TAG);
PokerWizard w = new PokerWizard ();
WizardStep ws1 = new WizardStep ();
WizardStep ws2 = new WizardStep ();
ws1.ID = "step1";
ws1.StepType = WizardStepType.Step;
ws1.Controls.Add (new LiteralControl ("Step1"));
ws2.ID = "step2";
ws2.StepType = WizardStepType.Step;
ws2.Controls.Add (new LiteralControl ("Step2"));
w.StepNavigationTemplate = new CompiledTemplateBuilder (_StepNavigationTemplateCreator);
w.WizardSteps.Add (ws1);
w.WizardSteps.Add (ws2);
p.Controls.Add (lcb);
p.Controls.Add (w);
p.Controls.Add (lce);
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:24,代码来源:WizardTest.cs
示例4: _FinishButtonPropertyRendering
public static void _FinishButtonPropertyRendering (Page p)
{
LiteralControl lcb = new LiteralControl (HtmlDiff.BEGIN_TAG);
LiteralControl lce = new LiteralControl (HtmlDiff.END_TAG);
PokerWizard w = new PokerWizard ();
w.FinishCompleteButtonStyle.BorderColor = Color.Red;
w.FinishCompleteButtonImageUrl = "http://FinishCompleteButtonImageUrl";
w.FinishDestinationPageUrl = "FinishDestinationPageUrl";
w.FinishCompleteButtonText = "FinishCompleteButtonText";
w.FinishCompleteButtonType = ButtonType.Link;
w.FinishPreviousButtonImageUrl = "http://FinishPreviousButtonImageUrl";
w.FinishPreviousButtonStyle.BackColor = Color.Red;
w.FinishPreviousButtonText = "FinishPreviousButtonText";
w.FinishPreviousButtonType = ButtonType.Image;
WizardStep ws0 = new WizardStep ();
ws0.ID = "step0";
ws0.StepType = WizardStepType.Start;
ws0.Controls.Add (new LiteralControl ("Finish"));
WizardStep ws1 = new WizardStep ();
ws1.ID = "step1";
ws1.StepType = WizardStepType.Finish;
ws1.Controls.Add (new LiteralControl ("Finish"));
w.DisplaySideBar = false;
w.WizardSteps.Add (ws0);
w.WizardSteps.Add (ws1);
w.MoveTo (ws1);
p.Controls.Add (lcb);
p.Controls.Add (w);
p.Controls.Add (lce);
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:33,代码来源:WizardTest.cs
示例5: _SideBarRendering
public static void _SideBarRendering (Page p)
{
LiteralControl lcb = new LiteralControl (HtmlDiff.BEGIN_TAG);
LiteralControl lce = new LiteralControl (HtmlDiff.END_TAG);
PokerWizard w = new PokerWizard ();
w.SideBarButtonStyle.BackColor = Color.Red;
w.SideBarStyle.BackColor = Color.Red;
w.SideBarTemplate = new CompiledTemplateBuilder (_SideBarTemplate);
WizardStep ws1 = new WizardStep ();
ws1.ID = "step1";
ws1.StepType = WizardStepType.Auto;
ws1.Controls.Add (new LiteralControl ("Step 1"));
WizardStep ws2 = new WizardStep ();
ws2.ID = "step2";
ws2.StepType = WizardStepType.Auto;
ws2.Controls.Add (new LiteralControl ("Step 2"));
w.WizardSteps.Add (ws1);
w.WizardSteps.Add (ws2);
p.Controls.Add (lcb);
p.Controls.Add (w);
p.Controls.Add (lce);
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:26,代码来源:WizardTest.cs
示例6: Wizard_DefaultProperty
public void Wizard_DefaultProperty ()
{
PokerWizard wizard = new PokerWizard ();
// Static members
Assert.AreEqual ("Cancel", Wizard.CancelCommandName, "CancelCommandName");
Assert.AreEqual ("MoveComplete", Wizard.MoveCompleteCommandName, "MoveCompleteCommandName");
Assert.AreEqual ("MoveNext", Wizard.MoveNextCommandName, "MoveNextCommandName");
Assert.AreEqual ("MovePrevious", Wizard.MovePreviousCommandName, "MovePreviousCommandName");
Assert.AreEqual ("Move", Wizard.MoveToCommandName, "MoveToCommandName");
#if NET_4_0
Assert.AreEqual ("headerPlaceholder", Wizard.HeaderPlaceholderId, "HeaderPlaceHolderId");
Assert.AreEqual ("navigationPlaceholder", Wizard.NavigationPlaceholderId, "NavigationPlaceHolderId");
Assert.AreEqual ("sideBarPlaceholder", Wizard.SideBarPlaceholderId, "SidePlaceholderId");
Assert.AreEqual ("wizardStepPlaceholder", Wizard.WizardStepPlaceholderId, "WizardStepPlaceholderId");
#endif
// Protected Fields
Assert.AreEqual ("CancelButton", PokerWizard.PokerCancelButtonID, "CancelButtonID");
Assert.AreEqual ("CustomFinishButton", PokerWizard.PokerCustomFinishButtonID, "CustomFinishButtonID");
Assert.AreEqual ("CustomNextButton", PokerWizard.PokerCustomNextButtonID, "CustomNextButtonID");
Assert.AreEqual ("CustomPreviousButton", PokerWizard.PokerCustomPreviousButtonID, "CustomPreviousButtonID");
Assert.AreEqual ("SideBarList", PokerWizard.PokerDataListID, "DataListID");
Assert.AreEqual ("FinishButton", PokerWizard.PokerFinishButtonID, "FinishButtonID");
Assert.AreEqual ("FinishPreviousButton", PokerWizard.PokerFinishPreviousButtonID, "FinishPreviousButtonID");
Assert.AreEqual ("SideBarButton", PokerWizard.PokerSideBarButtonID, "SideBarButtonID");
Assert.AreEqual ("StartNextButton", PokerWizard.PokerStartNextButtonID, "StartNextButtonID");
Assert.AreEqual ("StepNextButton", PokerWizard.PokerStepNextButtonID, "StepNextButtonID");
Assert.AreEqual ("StepPreviousButton", PokerWizard.PokerStepPreviousButtonID, "StepPreviousButtonID");
//Public Properties
Assert.AreEqual ("", wizard.CancelButtonImageUrl, "CancelButtonImageUrl");
Assert.AreEqual (typeof (Style), wizard.CancelButtonStyle.GetType (), "CancelButtonStyle");
Assert.AreEqual ("Cancel", wizard.CancelButtonText, "CancelButtonText");
Assert.AreEqual (ButtonType.Button, wizard.CancelButtonType, "CancelButtonType");
Assert.AreEqual ("", wizard.CancelDestinationPageUrl, "CancelDestinationPageUrl");
Assert.AreEqual (0, wizard.CellPadding, "CellPadding");
Assert.AreEqual (0, wizard.CellSpacing, "CellSpacing");
Assert.AreEqual (false, wizard.DisplayCancelButton, "DisplayCancelButton");
Assert.AreEqual (true, wizard.DisplaySideBar, "DisplaySideBar");
Assert.AreEqual ("", wizard.FinishCompleteButtonImageUrl, "FinishCompleteButtonImageUrl");
Assert.AreEqual (typeof (Style), wizard.FinishCompleteButtonStyle.GetType (), "FinishCompleteButtonStyle");
Assert.AreEqual ("Finish", wizard.FinishCompleteButtonText, "FinishCompleteButtonText");
Assert.AreEqual (ButtonType.Button, wizard.FinishCompleteButtonType, "FinishCompleteButtonType");
Assert.AreEqual ("", wizard.FinishDestinationPageUrl, "FinishDestinationPageUrl");
Assert.AreEqual (null, wizard.FinishNavigationTemplate, "FinishNavigationTemplate");
Assert.AreEqual ("", wizard.FinishPreviousButtonImageUrl, "FinishPreviousButtonImageUrl");
Assert.AreEqual (typeof (Style), wizard.FinishPreviousButtonStyle.GetType (), "FinishPreviousButtonStyle");
Assert.AreEqual ("Previous", wizard.FinishPreviousButtonText, "FinishPreviousButtonText");
Assert.AreEqual (ButtonType.Button, wizard.FinishPreviousButtonType, "FinishPreviousButtonType");
Assert.AreEqual (typeof (TableItemStyle), wizard.HeaderStyle.GetType (), "HeaderStyle");
Assert.AreEqual (null, wizard.HeaderTemplate, "HeaderTemplate");
Assert.AreEqual ("", wizard.HeaderText, "HeaderText");
Assert.AreEqual (typeof (Style), wizard.NavigationButtonStyle.GetType (), "NavigationButtonStyle");
Assert.AreEqual (typeof (TableItemStyle), wizard.NavigationStyle.GetType (), "NavigationStyle");
Assert.AreEqual (typeof (Style), wizard.SideBarButtonStyle.GetType (), "SideBarButtonStyle");
Assert.AreEqual (typeof (TableItemStyle), wizard.SideBarStyle.GetType (), "SideBarStyle");
Assert.AreEqual (null, wizard.SideBarTemplate, "SideBarTemplate");
Assert.AreEqual (null, wizard.StartNavigationTemplate, "StartNavigationTemplate");
Assert.AreEqual ("", wizard.StartNextButtonImageUrl, "StartNextButtonImageUrl");
Assert.AreEqual (typeof (Style), wizard.StartNextButtonStyle.GetType (), "StartNextButtonStyle");
Assert.AreEqual ("Next", wizard.StartNextButtonText, "StartNextButtonText");
Assert.AreEqual (ButtonType.Button, wizard.StartNextButtonType, "StartNextButtonType");
Assert.AreEqual (null, wizard.StepNavigationTemplate, "StepNavigationTemplate");
Assert.AreEqual ("", wizard.StepNextButtonImageUrl, "StepNextButtonImageUrl");
Assert.AreEqual (typeof (Style), wizard.StepNextButtonStyle.GetType (), "StepNextButtonStyle");
Assert.AreEqual ("Next", wizard.StepNextButtonText, "StepNextButtonText");
Assert.AreEqual (ButtonType.Button, wizard.StepNextButtonType, "StepNextButtonType");
Assert.AreEqual ("", wizard.StepPreviousButtonImageUrl, "StepPreviousButtonImageUrl");
Assert.AreEqual (typeof (Style), wizard.StepPreviousButtonStyle.GetType (), "StepPreviousButtonStyle");
Assert.AreEqual ("Previous", wizard.StepPreviousButtonText, "StepPreviousButtonText");
Assert.AreEqual (ButtonType.Button, wizard.StepPreviousButtonType, "StepPreviousButtonType");
Assert.AreEqual (typeof (TableItemStyle), wizard.StepStyle.GetType (), "StepStyle");
Assert.AreEqual (typeof (WizardStepCollection), wizard.WizardSteps.GetType (), "WizardSteps");
Assert.IsNotNull (wizard.WizardSteps, "WizardSteps");
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:73,代码来源:WizardTest.cs
示例7: Wizard_StateBag
public void Wizard_StateBag ()
{
PokerWizard w = new PokerWizard ();
Assert.AreEqual (0, w.Attributes.Count, "Attributes.Count");
Assert.AreEqual (0, w.StateBag.Count, "ViewState.Count");
w.CancelButtonImageUrl = "value";
Assert.AreEqual ("value", w.CancelButtonImageUrl, "CancelButtonImageUrl");
Assert.AreEqual (1, w.StateBag.Count, "ViewState.Count-1");
w.CancelDestinationPageUrl = "value";
Assert.AreEqual ("value", w.CancelDestinationPageUrl, "CancelDestinationPageUrl");
Assert.AreEqual (2, w.StateBag.Count, "ViewState.Count-2");
w.FinishCompleteButtonImageUrl = "value";
Assert.AreEqual ("value", w.FinishCompleteButtonImageUrl, "FinishCompleteButtonImageUrl");
Assert.AreEqual (3, w.StateBag.Count, "ViewState.Count-3");
w.FinishDestinationPageUrl = "value";
Assert.AreEqual ("value", w.FinishDestinationPageUrl, "FinishDestinationPageUrl");
Assert.AreEqual (4, w.StateBag.Count, "ViewState.Count-4");
w.FinishPreviousButtonImageUrl = "value";
Assert.AreEqual ("value", w.FinishPreviousButtonImageUrl, "FinishPreviousButtonImageUrl");
Assert.AreEqual (5, w.StateBag.Count, "ViewState.Count-5");
w.StartNextButtonImageUrl = "value";
Assert.AreEqual ("value", w.StartNextButtonImageUrl, "StartNextButtonImageUrl");
Assert.AreEqual (6, w.StateBag.Count, "ViewState.Count-6");
w.StepNextButtonImageUrl = "value";
Assert.AreEqual ("value", w.StepNextButtonImageUrl, "StepNextButtonImageUrl");
Assert.AreEqual (7, w.StateBag.Count, "ViewState.Count-7");
w.StepPreviousButtonImageUrl = "value";
Assert.AreEqual ("value", w.StepPreviousButtonImageUrl, "StepPreviousButtonImageUrl");
Assert.AreEqual (8, w.StateBag.Count, "ViewState.Count-8");
w.CancelButtonText = "value";
Assert.AreEqual ("value", w.CancelButtonText, "CancelButtonText");
Assert.AreEqual (9, w.StateBag.Count, "ViewState.Count-9");
w.FinishCompleteButtonText = "value";
Assert.AreEqual ("value", w.FinishCompleteButtonText, "FinishCompleteButtonText");
Assert.AreEqual (10, w.StateBag.Count, "ViewState.Count-10");
w.StartNextButtonText = "value";
Assert.AreEqual ("value", w.StartNextButtonText, "StartNextButtonText");
Assert.AreEqual (11, w.StateBag.Count, "ViewState.Count-11");
w.StepNextButtonText = "value";
Assert.AreEqual ("value", w.StepNextButtonText, "StepNextButtonText");
Assert.AreEqual (12, w.StateBag.Count, "ViewState.Count-12");
w.StepPreviousButtonText = "value";
Assert.AreEqual ("value", w.StepPreviousButtonText, "StepPreviousButtonText");
Assert.AreEqual (13, w.StateBag.Count, "ViewState.Count-13");
w.CancelButtonType = ButtonType.Button;
Assert.AreEqual (ButtonType.Button, w.CancelButtonType, "CancelButtonType");
Assert.AreEqual (14, w.StateBag.Count, "ViewState.Count-14");
w.FinishCompleteButtonType = ButtonType.Button;
Assert.AreEqual (ButtonType.Button, w.FinishCompleteButtonType, "FinishCompleteButtonType");
Assert.AreEqual (15, w.StateBag.Count, "ViewState.Count-15");
w.FinishPreviousButtonType = ButtonType.Button;
Assert.AreEqual (ButtonType.Button, w.FinishPreviousButtonType, "FinishPreviousButtonType");
Assert.AreEqual (16, w.StateBag.Count, "ViewState.Count-16");
w.StartNextButtonType = ButtonType.Button;
Assert.AreEqual (ButtonType.Button, w.StartNextButtonType, "StartNextButtonType");
Assert.AreEqual (17, w.StateBag.Count, "ViewState.Count-17");
w.StepNextButtonType = ButtonType.Button;
Assert.AreEqual (ButtonType.Button, w.StepNextButtonType, "StepNextButtonType");
Assert.AreEqual (18, w.StateBag.Count, "ViewState.Count-18");
w.StepPreviousButtonType = ButtonType.Button;
Assert.AreEqual (ButtonType.Button, w.StepPreviousButtonType, "StepPreviousButtonType");
Assert.AreEqual (19, w.StateBag.Count, "ViewState.Count-19");
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:82,代码来源:WizardTest.cs
示例8: Wizard_ViewState
public void Wizard_ViewState ()
{
PokerWizard wizard = new PokerWizard ();
PokerWizard copy = new PokerWizard ();
wizard.ControlStyle.BackColor = Color.Red;
wizard.FinishCompleteButtonStyle.BackColor = Color.Red;
wizard.FinishPreviousButtonStyle.BackColor = Color.Red;
wizard.HeaderStyle.BackColor = Color.Red;
wizard.NavigationButtonStyle.BackColor = Color.Red;
wizard.NavigationStyle.BackColor = Color.Red;
wizard.SideBarButtonStyle.BackColor = Color.Red;
wizard.SideBarStyle.BackColor = Color.Red;
wizard.StartNextButtonStyle.BackColor = Color.Red;
wizard.StepPreviousButtonStyle.BackColor = Color.Red;
wizard.StepNextButtonStyle.BackColor = Color.Red;
wizard.StepStyle.BackColor = Color.Red;
object state = wizard.SaveState ();
copy.LoadState (state);
Assert.AreEqual (Color.Red, copy.ControlStyle.BackColor, "ViewStateControlStyle");
Assert.AreEqual (Color.Red, copy.FinishCompleteButtonStyle.BackColor, "ViewStateFinishCompleteButtonStyle");
Assert.AreEqual (Color.Red, copy.FinishPreviousButtonStyle.BackColor, "ViewStateFinishPreviousButtonStyle");
Assert.AreEqual (Color.Red, copy.HeaderStyle.BackColor, "ViewStateHeaderStyle");
Assert.AreEqual (Color.Red, copy.NavigationButtonStyle.BackColor, "ViewStateNavigationButtonStyle");
Assert.AreEqual (Color.Red, copy.NavigationStyle.BackColor, "ViewStateNavigationStyle");
Assert.AreEqual (Color.Red, copy.SideBarButtonStyle.BackColor, "ViewStateSideBarButtonStyle");
Assert.AreEqual (Color.Red, copy.SideBarStyle.BackColor, "ViewStateSideBarStyle");
Assert.AreEqual (Color.Red, copy.StartNextButtonStyle.BackColor, "ViewStateStartNextButtonStyle");
Assert.AreEqual (Color.Red, copy.StepNextButtonStyle.BackColor, "ViewStateStepNextButtonStyle");
Assert.AreEqual (Color.Red, copy.StepStyle.BackColor, "ViewStateStepStyle");
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:30,代码来源:WizardTest.cs
示例9: 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");
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:9,代码来源:WizardTest.cs
示例10: Wizard_CreateControlStyle
public void Wizard_CreateControlStyle ()
{
PokerWizard wizard = new PokerWizard ();
Style style = wizard.PokerCreateControlStyle ();
Assert.AreEqual (typeof (TableStyle), style.GetType (), "CreateControlStyle#1");
Assert.AreEqual (0, ((TableStyle) style).CellPadding, "CreateControlStyle#2");
Assert.AreEqual (0, ((TableStyle) style).CellSpacing, "CreateControlStyle#3");
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:8,代码来源:WizardTest.cs
示例11: Wizard_ControlState
public void Wizard_ControlState ()
{
PokerWizard wizard = new PokerWizard ();
WizardStep step1 = new WizardStep ();
step1.ID = "step1";
step1.StepType = WizardStepType.Start;
WizardStep step3 = new WizardStep ();
step3.ID = "step3";
step3.StepType = WizardStepType.Finish;
wizard.WizardSteps.Add (step1);
wizard.WizardSteps.Add (step3);
wizard.ActiveStepIndex = 0;
wizard.MoveTo (step3);
// LAMESPEC: history updated when SaveControlState occured
Assert.AreEqual (0, ((ArrayList) wizard.GetHistory ()).Count, "ControlState#1");
object o = wizard.PokerSaveControlState ();
wizard.PokerLoadControlState (o);
wizard.MoveTo (step1);
Assert.AreEqual (0, wizard.ActiveStepIndex, "ControlState#2");
wizard.PokerLoadControlState (o);
Assert.AreEqual (1, wizard.ActiveStepIndex, "ControlState#3");
Assert.AreEqual (1, ((ArrayList) wizard.GetHistory ()).Count, "ControlState#4");
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:23,代码来源:WizardTest.cs
示例12: Wizard_CreateControlCollection
public void Wizard_CreateControlCollection ()
{
PokerWizard wizard = new PokerWizard ();
ControlCollection collection = wizard.PokerCreateControlCollection ();
Assert.IsNotNull (collection, "CreateControlCollection");
Assert.AreEqual (0, collection.Count, "CreateControlCollection#1");
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:7,代码来源:WizardTest.cs
示例13: 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");
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:7,代码来源:WizardTest.cs
示例14: 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");
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:25,代码来源:WizardTest.cs
示例15: Wizard_BubbleEvent_MoveTo
public void Wizard_BubbleEvent_MoveTo ()
{
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.Finish;
wizard.WizardSteps.Add (step1);
wizard.WizardSteps.Add (step2);
wizard.ActiveStepIndex = 0;
CommandEventArgs e = new CommandEventArgs (Wizard.MoveToCommandName, "1");
bool result = wizard.DoBubbleEvent (null, e);
Assert.AreEqual (true, result, "MoveToEventCommand");
Assert.AreEqual (1, wizard.ActiveStepIndex, "ActiveStepIndexAfterMoveToBubble");
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:17,代码来源:WizardTest.cs
示例16: Wizard_ActiveStepChanged
public void Wizard_ActiveStepChanged ()
{
PokerWizard wizard = new PokerWizard ();
wizard.ActiveStepChanged += new EventHandler (wizard_handler);
wizard.DoOnActiveStepChanged (this, new EventArgs ());
eventassert ("ActiveStepChanged");
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:7,代码来源:WizardTest.cs
示例17: Wizard_ViewStateException
public void Wizard_ViewStateException ()
{
PokerWizard wizard = new PokerWizard ();
wizard.LoadState (new object ());
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:5,代码来源:WizardTest.cs
示例18: Wizard_CancelButtonClick
public void Wizard_CancelButtonClick ()
{
PokerWizard wizard = new PokerWizard ();
wizard.CancelButtonClick += new EventHandler (wizard_handler);
wizard.DoOnCancelButtonClick (new EventArgs ());
eventassert ("CancelButtonClick");
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:7,代码来源:WizardTest.cs
示例19: Wizard_DefaultPropertyNotWorking
public void Wizard_DefaultPropertyNotWorking ()
{
PokerWizard wizard = new PokerWizard ();
Assert.AreEqual (null, wizard.ActiveStep, "ActiveStep");
Assert.AreEqual ("Skip Navigation Links.", wizard.SkipLinkText, "SkipLinkText");
// Protected Properties
Assert.AreEqual (typeof (HtmlTextWriterTag), wizard.PokerTagKey.GetType (), "TagKey");
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:8,代码来源:WizardTest.cs
示例20: Wizard_FinishButtonClick
public void Wizard_FinishButtonClick ()
{
PokerWizard wizard = new PokerWizard ();
wizard.FinishButtonClick += new WizardNavigationEventHandler (wizard_handler);
wizard.DoOnFinishButtonClick (new WizardNavigationEventArgs (0, 0));
eventassert ("FinishButtonClick");
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:7,代码来源:WizardTest.cs
注:本文中的MonoTests.System.Web.UI.WebControls.PokerWizard类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论