[bcl]Add test for CultureInfo.DefaultThreadCurrentCulture
[mono.git] / mcs / class / corlib / Test / System.Globalization / SortKeyTest.cs
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 //
9
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;
16
17 namespace MonoTests.System.Globalization
18 {
19
20         [TestFixture]
21         public class SortKeyTest
22         {
23                 [Test]
24                 [ExpectedException (typeof (ArgumentNullException))]
25                 public void CompareNull ()
26                 {
27                         // bug #376171
28                         SortKey.Compare (null, null);
29                 }
30
31                 [Test]
32                 [ExpectedException (typeof (ArgumentNullException))]
33                 public void CompareNull2 ()
34                 {
35                         // bug #376171
36                         SortKey.Compare (CultureInfo.InvariantCulture.CompareInfo.GetSortKey ("A"), null);
37                 }
38         }
39
40 }