//
using System;
+using System.Globalization;
using System.Windows;
using System.Windows.Media;
using NUnit.Framework;
}
[Test]
- [Category ("NotWorking")]
public void ConvertFrom ()
{
SizeConverter r = new SizeConverter ();
}
[Test]
- [Category ("NotWorking")]
[ExpectedException (typeof (ArgumentException))]
public void ConvertFrom_negative ()
{
}
[Test]
- [Category ("NotWorking")]
public void ConvertTo ()
{
SizeConverter r = new SizeConverter ();
Size rect = new Size (1, 2);
- object o = r.ConvertTo (rect, typeof (string));
+ object o = r.ConvertTo (null, CultureInfo.InvariantCulture, rect, typeof (string));
Assert.AreEqual (typeof (string), o.GetType());
Assert.AreEqual ("1,2", (string)o);