From 3fac50275f7f9279824de643d8c373c35aa0cf19 Mon Sep 17 00:00:00 2001 From: jbevain Date: Fri, 2 Apr 2010 10:54:10 +0000 Subject: [PATCH] 2010-04-02 Jb Evain * SortedSetTest.cs: add test for Reverse. git-svn-id: svn+ssh://mono-cvs.ximian.com/source/trunk/mcs@154706 e3ebcda4-bce8-0310-ba0a-eca2169e7518 --- class/System/Test/System.Collections.Generic/ChangeLog | 4 ++++ class/System/Test/System.Collections.Generic/SortedSetTest.cs | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/class/System/Test/System.Collections.Generic/ChangeLog b/class/System/Test/System.Collections.Generic/ChangeLog index 4ccd60d23b..d5daccea9a 100644 --- a/class/System/Test/System.Collections.Generic/ChangeLog +++ b/class/System/Test/System.Collections.Generic/ChangeLog @@ -1,5 +1,9 @@ 2010-04-02 Jb Evain + * SortedSetTest.cs: add test for Reverse. + +2010-04-02 Jb Evain + * SortedSetTest.cs: add new fixture. 2009-12-01 Jb Evain diff --git a/class/System/Test/System.Collections.Generic/SortedSetTest.cs b/class/System/Test/System.Collections.Generic/SortedSetTest.cs index 5d938bb183..a4b4c52373 100644 --- a/class/System/Test/System.Collections.Generic/SortedSetTest.cs +++ b/class/System/Test/System.Collections.Generic/SortedSetTest.cs @@ -111,6 +111,14 @@ namespace MonoTests.System.Collections.Generic var set = new SortedSet { 5, 3, 1, 2, 6, 4 }; Assert.IsTrue (set.SequenceEqual (new [] { 1, 2, 3, 4, 5, 6 })); } + + [Test] + public void Reverse () + { + var set = new SortedSet { 5, 3, 1, 2, 6, 4 }; + var reversed = set.Reverse (); + Assert.IsTrue (reversed.SequenceEqual (new [] { 6, 5, 4, 3, 2, 1 })); + } } } -- 2.11.4.GIT