}
[Test]
- [ExpectedException (typeof (ArgumentException))]
public void TestCreateInstance_CaseSensitive ()
{
Hashtable ht = new Hashtable ();
ht.Add ("x", 2);
ht.Add ("Y", 3);
- ptconv.CreateInstance (null, ht);
+ Assert.Throws<ArgumentException> (() => ptconv.CreateInstance (null, ht));
}
[Test]
}
[Test]
- [ExpectedException (typeof (ArgumentException))]
public void ConvertFromInvariantString_string_exc_1 ()
{
- ptconv.ConvertFromInvariantString ("1");
+ Assert.Throws<ArgumentException> (() => ptconv.ConvertFromInvariantString ("1"));
}
[Test]
}
[Test]
- [ExpectedException (typeof (ArgumentException))]
public void ConvertFromString_string_exc_1 ()
{
- ptconv.ConvertFromString ("1");
+ Assert.Throws<ArgumentException> (() => ptconv.ConvertFromString ("1"));
}
[Test]