2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / class / Mono.C5 / Test / trees / RedBlackTreeSetTests.cs
index 6f2ef951b9987d6dd668fb1e742e567a1fed779f..117ba6dd2b3824a3df03dfd96ed5ba2040129c49 100644 (file)
@@ -1,3 +1,4 @@
+#if NET_2_0\r
 /*\r
  Copyright (c) 2003-2004 Niels Kokholm <kokholm@itu.dk> and Peter Sestoft <sestoft@dina.kvl.dk>\r
  Permission is hereby granted, free of charge, to any person obtaining a copy\r
@@ -723,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
@@ -731,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
@@ -756,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
@@ -780,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
@@ -788,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
@@ -813,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
@@ -2291,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
@@ -2409,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
@@ -2486,9 +2485,6 @@ namespace nunit.trees.TreeSet
                }\r
        }\r
 \r
-\r
-\r
-\r
        namespace Hashing\r
        {\r
                [TestFixture]\r
@@ -2706,4 +2702,5 @@ namespace nunit.trees.TreeSet
                }\r
 \r
        }\r
-}
\ No newline at end of file
+}\r
+#endif\r