Exemple #1
0
	    public void ValueChangedEventsOrder ()
	       {
		       string[] EventsWanted = {
			       "HandleCreated",
				 "BindingContextChanged",
				 "BindingContextChanged",
				 "ValueChanged"
		       };
		       Form myform = new Form ();
		       myform.ShowInTaskbar = false;
		       myform.Visible = true;
		       MyScrollBar2 s = new MyScrollBar2 ();
		       myform.Controls.Add (s);
		       s.Value = 10;

		       Assert.AreEqual (EventsWanted, ArrayListToString (s.Results));
		       myform.Dispose ();
	       }
Exemple #2
0
	    public void BackgroundImageChangedEventsOrder ()
	       {
		       string[] EventsWanted = {
			       "HandleCreated",
				 "BindingContextChanged",
				 "BindingContextChanged",
				 "Invalidated",
				 "BackgroundImageChanged"

		       };
		       Form myform = new Form ();
		       myform.ShowInTaskbar = false;
		       myform.Visible = true;
		       MyScrollBar2 s = new MyScrollBar2 ();
		       myform.Controls.Add (s);
		       s.BackgroundImage = Image.FromFile ("Test/System.Windows.Forms/bitmaps/a.png");

		       Assert.AreEqual (EventsWanted, ArrayListToString (s.Results));
		       myform.Dispose ();
	       }