2 // System.ComponentModel.TypeConverter test cases
5 // Marek Habersack (mhabersack@novell.com)
7 // (c) 2008 Novell, Inc. (http://novell.com)
11 using System.ComponentModel;
12 using System.ComponentModel.Design.Serialization;
14 using System.Globalization;
16 using NUnit.Framework;
18 namespace MonoTests.System.ComponentModel
21 public class ComponentConverterTests
24 public void DataSetConversions ()
26 TypeConverter converter = TypeDescriptor.GetConverter (typeof (DataSet));
27 Assert.AreEqual (typeof (ComponentConverter), converter != null ? converter.GetType () : null, "A1");
29 DataSet ds = new DataSet ();
30 string s = (string) converter.ConvertTo (null, CultureInfo.InvariantCulture, ds, typeof (string));
31 Assert.AreEqual (String.Empty, s, "A2");
33 object obj = converter.ConvertFrom (null, CultureInfo.InvariantCulture, s);
34 Assert.IsNull (obj, "A3");