Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/corlib/Test/System.Collections/ComparerTest.cs')
-rw-r--r--mcs/class/corlib/Test/System.Collections/ComparerTest.cs60
1 files changed, 0 insertions, 60 deletions
diff --git a/mcs/class/corlib/Test/System.Collections/ComparerTest.cs b/mcs/class/corlib/Test/System.Collections/ComparerTest.cs
deleted file mode 100644
index 38b78de39e7..00000000000
--- a/mcs/class/corlib/Test/System.Collections/ComparerTest.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-// ComparerTest
-
-using System;
-using System.Collections;
-
-using NUnit.Framework;
-
-
-
-namespace MonoTests.System.Collections {
-
-
- /// <summary>Comparer test suite.</summary>
- public class ComparerTest : TestCase {
- public ComparerTest() : base ("MonoTests.System.Collections.ComparerTest testcase") {}
- public ComparerTest(String name) : base(name)
- {
- }
-
- protected override void SetUp ()
- {
- }
-
- public static ITest Suite
- {
- get {
- return new TestSuite(typeof(ComparerTest));
- }
- }
-
- public void TestDefaultInstance ()
- {
- // Make sure the instance returned by Default
- // is really a Comparer.
- Assert((Comparer.Default as Comparer) != null);
- }
-
- public void TestCompare ()
- {
- Comparer c = Comparer.Default;
-
- bool thrown = false;
-
- try {
- c.Compare (new Object (), new Object ());
- } catch (ArgumentException) {
- thrown = true;
- }
-
- Assert("ArgumentException expected", thrown);
-
- Assert(c.Compare (1, 2) < 0);
- Assert(c.Compare (2, 2) == 0);
- Assert(c.Compare (3, 2) > 0);
-
- }
-
- }
-
-}