2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / class / Mono.C5 / Test / trees / RedBlackTreeSetTests.cs
index 50fe17139642fd3e5fb087f93490d3d5654574ed..117ba6dd2b3824a3df03dfd96ed5ba2040129c49 100644 (file)
@@ -724,7 +724,7 @@ namespace nunit.trees.TreeSet
 \r
 \r
                [Test]\r
-               [ExpectedException(typeof(ArgumentOutOfRangeException), "Below minimum of set\r\nParameter name: item\r\nActual value was -2.")]\r
+               [ExpectedException(typeof(ArgumentOutOfRangeException))]\r
                public void PredecessorTooLow1()\r
                {\r
                        tree.Predecessor(-2);\r
@@ -732,7 +732,7 @@ namespace nunit.trees.TreeSet
 \r
 \r
                [Test]\r
-               [ExpectedException(typeof(ArgumentOutOfRangeException), "Below minimum of set\r\nParameter name: item\r\nActual value was 0.")]\r
+               [ExpectedException(typeof(ArgumentOutOfRangeException))]\r
                public void PredecessorTooLow2()\r
                {\r
                        tree.Predecessor(0);\r
@@ -757,7 +757,7 @@ namespace nunit.trees.TreeSet
 \r
 \r
                [Test]\r
-               [ExpectedException(typeof(ArgumentOutOfRangeException), "Below minimum of set\r\nParameter name: item\r\nActual value was -2.")]\r
+               [ExpectedException(typeof(ArgumentOutOfRangeException))]\r
                public void WeakPredecessorTooLow1()\r
                {\r
                        tree.WeakPredecessor(-2);\r
@@ -781,7 +781,7 @@ namespace nunit.trees.TreeSet
 \r
 \r
                [Test]\r
-               [ExpectedException(typeof(ArgumentOutOfRangeException), "Above maximum of set\r\nParameter name: item\r\nActual value was 38.")]\r
+               [ExpectedException(typeof(ArgumentOutOfRangeException))]\r
                public void SuccessorTooHigh1()\r
                {\r
                        tree.Successor(38);\r
@@ -789,7 +789,7 @@ namespace nunit.trees.TreeSet
 \r
 \r
                [Test]\r
-               [ExpectedException(typeof(ArgumentOutOfRangeException), "Above maximum of set\r\nParameter name: item\r\nActual value was 39.")]\r
+               [ExpectedException(typeof(ArgumentOutOfRangeException))]\r
                public void SuccessorTooHigh2()\r
                {\r
                        tree.Successor(39);\r
@@ -814,7 +814,7 @@ namespace nunit.trees.TreeSet
 \r
 \r
                [Test]\r
-               [ExpectedException(typeof(ArgumentOutOfRangeException), "Above maximum of set\r\nParameter name: item\r\nActual value was 39.")]\r
+               [ExpectedException(typeof(ArgumentOutOfRangeException))]\r
                public void WeakSuccessorTooHigh1()\r
                {\r
                        tree.WeakSuccessor(39);\r
@@ -2292,16 +2292,15 @@ namespace nunit.trees.TreeSet
        }\r
 \r
 \r
-\r
-\r
        namespace Sync\r
        {\r
+               [Category ("Threading")]\r
                [TestFixture]\r
                public class SyncRoot\r
                {\r
                        private TreeSet<int> tree;\r
 \r
-                       int sz = 5000;\r
+                       int sz = 50;\r
 \r
 \r
                        [Test]\r
@@ -2410,14 +2409,13 @@ namespace nunit.trees.TreeSet
                        public void Dispose() { tree = null; }\r
                }\r
 \r
-\r
-\r
                //[TestFixture]\r
+               [Category ("Threading")]\r
                public class ConcurrentQueries\r
                {\r
                        private TreeSet<int> tree;\r
 \r
-                       int sz = 500000;\r
+                       int sz = 500;\r
 \r
 \r
                        [SetUp]\r
@@ -2487,9 +2485,6 @@ namespace nunit.trees.TreeSet
                }\r
        }\r
 \r
-\r
-\r
-\r
        namespace Hashing\r
        {\r
                [TestFixture]\r