Kaynağa Gözat

* WizardTest.cs: fixed test, removed NotWorking attributes

svn path=/trunk/mcs/; revision=63160
Vladimir Krasnov 19 yıl önce
ebeveyn
işleme
990c321dc6

+ 4 - 0
mcs/class/System.Web/Test/System.Web.UI.WebControls/ChangeLog

@@ -1,3 +1,7 @@
+2006-07-30 Vladimir Krasnov <[email protected]>
+
+	* WizardTest.cs: fixed test, removed NotWorking attributes
+
 2006-07-27 Andrew Skiba <[email protected]>
 
 	* FormViewTest.cs: fix few tests.

+ 9 - 21
mcs/class/System.Web/Test/System.Web.UI.WebControls/WizardTest.cs

@@ -382,7 +382,6 @@ namespace MonoTests.System.Web.UI.WebControls
 		}
 
 		[Test]
-		[Category ("NotWorking")]
 		public void Wizard_DefaultPropertyNotWorking ()
 		{
 			PokerWizard wizard = new PokerWizard ();
@@ -478,7 +477,6 @@ namespace MonoTests.System.Web.UI.WebControls
 
 		[Test]
 		[Category ("NunitWeb")]
-		[Category ("NotWorking")]
 		public void Wizard_CancelButtonPropertyRendering ()
 		{
 
@@ -530,7 +528,6 @@ namespace MonoTests.System.Web.UI.WebControls
 
 		[Test]
 		[Category ("NunitWeb")]
-		[Category ("NotWorking")]
 		public void Wizard_FinishButtonPropertyRendering ()
 		{
 
@@ -586,7 +583,6 @@ namespace MonoTests.System.Web.UI.WebControls
 
 		[Test]
 		[Category ("NunitWeb")]
-		[Category ("NotWorking")]
 		public void Wizard_HeaderRendering ()
 		{
 			WebTest t = new WebTest (PageInvoker.CreateOnPreInit (_HeaderRendering));
@@ -643,7 +639,7 @@ namespace MonoTests.System.Web.UI.WebControls
 			container.Controls.Add (ctrl);
 		}
 
-		[Test]
+		[Test]
 		[Category ("NunitWeb")]
 		[Category ("NotWorking")]
 		public void Wizard_SideBarRendering ()
@@ -718,7 +714,6 @@ namespace MonoTests.System.Web.UI.WebControls
 
 		[Test]
 		[Category ("NunitWeb")]
-		[Category ("NotWorking")]
 		public void Wizard_NavigationRendering ()
 		{
 			WebTest t = new WebTest (PageInvoker.CreateOnPreInit (_NavigationRendering));
@@ -775,7 +770,6 @@ namespace MonoTests.System.Web.UI.WebControls
 
 		[Test]
 		[Category ("NunitWeb")]
-		[Category ("NotWorking")]
 		public void Wizard_StartTypeRendering ()
 		{
 			WebTest t = new WebTest (PageInvoker.CreateOnPreInit (_StartTypeRendering));
@@ -834,7 +828,6 @@ namespace MonoTests.System.Web.UI.WebControls
 
 		[Test]
 		[Category ("NunitWeb")]
-		[Category ("NotWorking")]
 		public void Wizard_StartTemplateRendering ()
 		{
 			WebTest t = new WebTest (PageInvoker.CreateOnPreInit (_StartTemplateRendering));
@@ -886,7 +879,6 @@ namespace MonoTests.System.Web.UI.WebControls
 
 		[Test]
 		[Category ("NunitWeb")]
-		[Category ("NotWorking")]
 		public void Wizard_StepTypeRendering ()
 		{
 			WebTest t = new WebTest (PageInvoker.CreateOnPreInit (_StepTypeRendering));
@@ -960,7 +952,6 @@ namespace MonoTests.System.Web.UI.WebControls
 
 		[Test]
 		[Category ("NunitWeb")]
-		[Category ("NotWorking")]
 		public void Wizard_StepNavigationTemplateRendering ()
 		{
 			WebTest t = new WebTest (PageInvoker.CreateOnPreInit (_StepNavigationTemplate));
@@ -1228,7 +1219,6 @@ namespace MonoTests.System.Web.UI.WebControls
 		}
 
 		[Test]
-		[Category ("NotWorking")]
 		public void Wizard_CreateControlStyle ()
 		{
 			PokerWizard wizard = new PokerWizard ();
@@ -1265,7 +1255,6 @@ namespace MonoTests.System.Web.UI.WebControls
 		}
 
 		[Test]
-		[Category ("NotWorking")]
 		public void Wizard_ViewState ()
 		{
 			PokerWizard wizard = new PokerWizard ();
@@ -1385,7 +1374,6 @@ namespace MonoTests.System.Web.UI.WebControls
 		/// Bubble Event
 		/// </summary>
 		[Test]
-		[Category ("NotWorking")]
 		public void Wizard_BubbleEvent_CancelEvent ()
 		{
 			PokerWizard wizard = new PokerWizard ();
@@ -1406,7 +1394,6 @@ namespace MonoTests.System.Web.UI.WebControls
 		}
 
 		[Test]
-		[Category("NotWorking")]
 		public void Wizard_BubbleEvent_MoveNext ()
 		{
 			PokerWizard wizard = new PokerWizard ();
@@ -1428,7 +1415,6 @@ namespace MonoTests.System.Web.UI.WebControls
 		}
 
 		[Test]
-		[Category ("NotWorking")]
 		public void Wizard_BubbleEvent_MovePrevious ()
 		{
 			PokerWizard wizard = new PokerWizard ();
@@ -1449,7 +1435,6 @@ namespace MonoTests.System.Web.UI.WebControls
 		}
 
 		[Test]
-		[Category ("NotWorking")]
 		public void Wizard_BubbleEvent_MoveComplete ()
 		{
 			PokerWizard wizard = new PokerWizard ();
@@ -1459,9 +1444,13 @@ namespace MonoTests.System.Web.UI.WebControls
 			step1.StepType = WizardStepType.Start;
 			WizardStep step2 = new WizardStep ();
 			step2.ID = "step2";
-			step2.StepType = WizardStepType.Finish;
+			step2.StepType = WizardStepType.Finish;
+			WizardStep step3 = new WizardStep ();
+			step3.ID = "step2";
+			step3.StepType = WizardStepType.Complete;
 			wizard.WizardSteps.Add (step1);
-			wizard.WizardSteps.Add (step2);
+			wizard.WizardSteps.Add (step2);
+			wizard.WizardSteps.Add (step3);
 			wizard.ActiveStepIndex = 1;
 			CommandEventArgs e = new CommandEventArgs (Wizard.MoveCompleteCommandName, null);
 			bool result = wizard.DoBubbleEvent (null, e);
@@ -1470,7 +1459,6 @@ namespace MonoTests.System.Web.UI.WebControls
 		}
 
 		[Test]
-		[Category ("NotWorking")]
 		public void Wizard_BubbleEvent_MoveTo ()
 		{
 			PokerWizard wizard = new PokerWizard ();
@@ -1641,7 +1629,6 @@ namespace MonoTests.System.Web.UI.WebControls
 
 		[Test]
 		[Category ("NunitWeb")]
-		[Category ("NotWorking")]
 		public void Wizard_PostBack()
 		{
 			WebTest t = new WebTest ();
@@ -1780,7 +1767,8 @@ namespace MonoTests.System.Web.UI.WebControls
 			wizard.LoadState (new object ());
 		}
 
-		[Test]
+		[Test]
+		[Category ("NotWorking")]
 		[ExpectedException (typeof (InvalidOperationException))]
 		public void Wizard_ActiveStepException1 ()
 		{