Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Wilkens <robwilkens@robwilkens-HP-Pavilion-g6-Notebook-PC.(none)>2012-05-29 15:50:48 +0400
committerRobert Wilkens <robwilkens@robwilkens-HP-Pavilion-g6-Notebook-PC.(none)>2012-05-29 15:50:48 +0400
commit54b943f14fee7dfd0363dae6f1dc8209b9c75147 (patch)
tree08fd309cd4a7a7862544da74ba870e1038d6e06f /mcs/class/Managed.Windows.Forms/Test
parent30885fd4d7dc943a9392783b8a771c5dfa46bffb (diff)
Replaces some tabs with spaces - earlier copy and paste messed this up, this
shouldn't affect any code, just its formatting.
Diffstat (limited to 'mcs/class/Managed.Windows.Forms/Test')
-rw-r--r--mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ComboBoxTest.cs84
1 files changed, 42 insertions, 42 deletions
diff --git a/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ComboBoxTest.cs b/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ComboBoxTest.cs
index 63c2b410d8f..4f9765315cf 100644
--- a/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ComboBoxTest.cs
+++ b/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ComboBoxTest.cs
@@ -849,45 +849,45 @@ namespace MonoTests.System.Windows.Forms
}
//Bug 2234 (Xamarin) : Test 1
- [Test]
- public void VerifyNoExceptions2234()
- {
- Form form = new Form ();
- ComboBox cmb = new ComboBox();
- form.Controls.Add (cmb);
- form.Show ();
- eventFired=false; //for sanity
-
- //Primary failure: if exception is raised when
- // DataSource changes. We should "eat" the exception
- // under this circumstance before it gets here.
- cmb.SelectedIndexChanged += new EventHandler(GenericHandlerWithException);
- cmb.DataSource=new string[]{"One","Two","Three"};
- if (!eventFired){
- //secondary failure: The event was never fired
- throw new Exception("Secondary Test Failure (2234:1)");
- }
- form.Dispose();
- }
-
+ [Test]
+ public void VerifyNoExceptions2234()
+ {
+ Form form = new Form ();
+ ComboBox cmb = new ComboBox();
+ form.Controls.Add (cmb);
+ form.Show ();
+ eventFired=false; //for sanity
+
+ //Primary failure: if exception is raised when
+ // DataSource changes. We should "eat" the exception
+ // under this circumstance before it gets here.
+ cmb.SelectedIndexChanged += new EventHandler(GenericHandlerWithException);
+ cmb.DataSource=new string[]{"One","Two","Three"};
+ if (!eventFired){
+ //secondary failure: The event was never fired
+ throw new Exception("Secondary Test Failure (2234:1)");
+ }
+ form.Dispose();
+ }
+
//Bug 2234 (Xamarin) : Test 2
- [Test]
- [ExpectedException (typeof (Exception))]
- public void VerifyException2234()
- {
- Form form = new Form ();
- ComboBox cmb = new ComboBox();
- form.Controls.Add (cmb);
- form.Show ();
- eventFired=false; //for sanity
- cmb.SelectedIndexChanged += new EventHandler(GenericHandlerWithException);
- cmb.DataSource=new string[]{"One","Two","Three"};
-
- //Here's where Exception Should raise, see Expected
- cmb.SelectedIndex=2;
-
- form.Dispose();
- }
+ [Test]
+ [ExpectedException (typeof (Exception))]
+ public void VerifyException2234()
+ {
+ Form form = new Form ();
+ ComboBox cmb = new ComboBox();
+ form.Controls.Add (cmb);
+ form.Show ();
+ eventFired=false; //for sanity
+ cmb.SelectedIndexChanged += new EventHandler(GenericHandlerWithException);
+ cmb.DataSource=new string[]{"One","Two","Three"};
+
+ //Here's where Exception Should raise, see Expected
+ cmb.SelectedIndex=2;
+
+ form.Dispose();
+ }
//
@@ -907,10 +907,10 @@ namespace MonoTests.System.Windows.Forms
}
private void GenericHandlerWithException (object sender, EventArgs e)
- {
- eventFired = true;
- throw new Exception("Crash!");
- }
+ {
+ eventFired = true;
+ throw new Exception("Crash!");
+ }
[Ignore ("Bugs in X11 prevent this test to run properly")]