Imported Upstream version 4.0.0~alpha1

Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
This commit is contained in:
Jo Shields
2015-04-07 09:35:12 +01:00
parent 283343f570
commit 3c1f479b9d
22469 changed files with 2931443 additions and 869343 deletions

View File

@@ -1,4 +1,3 @@
#if NET_2_0
using System;
using System.Collections.Generic;
using System.IO;
@@ -341,4 +340,3 @@ namespace MonoTests.System.Collections.Generic
}
}
#endif

View File

@@ -5,7 +5,6 @@
// Ben Maurer (bmaurer@ximian.com)
//
#if NET_2_0
using System;
using System.Collections;
using System.Collections.Generic;
@@ -376,4 +375,3 @@ namespace MonoTests.System.Collections.Generic {
0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0b };
}
}
#endif

View File

@@ -296,7 +296,7 @@ namespace MonoTests.System.Collections.Generic
}
[Test]
[ExpectedException (typeof (ArgumentException))]
[ExpectedException (typeof (ArgumentNullException))]
public void IDictionaryAddValueNullValueType ()
{
IDictionary d = new SortedDictionary<string,int> ();

View File

@@ -29,7 +29,6 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_2_0
using System;
using System.Collections;
@@ -527,4 +526,3 @@ namespace MonoTests.System.Collections.Generic
}
}
#endif

View File

@@ -120,6 +120,15 @@ namespace MonoTests.System.Collections.Generic
Assert.IsTrue (reversed.SequenceEqual (new [] { 6, 5, 4, 3, 2, 1 }));
}
[Test]
public void ReverseView ()
{
var set = new SortedSet<int> { 1, 2, 3, 4, 5, 6 };
var subset = set.GetViewBetween (3, 5);
Assert.AreEqual (3, subset.Count, "#1");
Assert.AreEqual (3, subset.Reverse ().Count (), "#2");
}
[Test]
public void RemoveWhere ()
{
@@ -523,7 +532,7 @@ namespace MonoTests.System.Collections.Generic
do_test (non_prime_odd_digit, digits, psb: true);
do_test_e (non_prime_odd_digit, new [] { 9 }, o: true, se: true);
do_test (non_trit, digits, psb: true);
do_test (trit, non_trit);
// do_test (trit, non_trit);
do_test_e (digits, trit.Concat (non_trit), o: true, se: true);
do_test_e (non_trit, new [] { 3, 4, 5, 6, 7, 8, 9 }, o: true, se: true);
do_test (digits.GetViewBetween (0, 2), trit, se: true);

View File

@@ -5,7 +5,6 @@
// Ben Maurer (bmaurer@ximian.com)
//
#if NET_2_0
using System;
using System.Collections;
using System.Collections.Generic;
@@ -341,4 +340,3 @@ namespace MonoTests.System.Collections.Generic
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0b };
}
}
#endif