+#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
\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
\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
\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
\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
\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
\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
}\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
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
}\r
}\r
\r
-\r
-\r
-\r
namespace Hashing\r
{\r
[TestFixture]\r
}\r
\r
}\r
-}
\ No newline at end of file
+}\r
+#endif\r