2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / class / corlib / Test / System.Globalization / SortKeyTest.cs
blob9f67353d5cbfb511fa5ea27831d0960e8486a2ee
1 //
2 // SortKeyTest.cs
3 //
4 // Author:
5 // Atsushi Enomoto <atsushi@ximian.com>
6 //
7 // Copyright (C) 2007 Novell, Inc (http://www.novell.com)
8 //
10 using NUnit.Framework;
11 using System;
12 using System.Globalization;
13 using System.IO;
14 using System.Runtime.Serialization;
15 using System.Runtime.Serialization.Formatters.Binary;
17 namespace MonoTests.System.Globalization
20 [TestFixture]
21 public class SortKeyTest
23 [Test]
24 [ExpectedException (typeof (ArgumentNullException))]
25 public void CompareNull ()
27 // bug #376171
28 SortKey.Compare (null, null);
31 [Test]
32 [ExpectedException (typeof (ArgumentNullException))]
33 public void CompareNull2 ()
35 // bug #376171
36 SortKey.Compare (CultureInfo.InvariantCulture.CompareInfo.GetSortKey ("A"), null);