projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make System.Drawing unit tests use Assert.Throws instead of [ExpectedException] ...
[mono.git]
/
mcs
/
class
/
System.Drawing
/
Test
/
System.Drawing
/
TestPointConverter.cs
diff --git
a/mcs/class/System.Drawing/Test/System.Drawing/TestPointConverter.cs
b/mcs/class/System.Drawing/Test/System.Drawing/TestPointConverter.cs
index 0a0a6d0914fc7c5eb57f621f819c3343e840b775..7b5ec27a8576b5ffeaf3e6bb851b6bcfde840684 100644
(file)
--- a/
mcs/class/System.Drawing/Test/System.Drawing/TestPointConverter.cs
+++ b/
mcs/class/System.Drawing/Test/System.Drawing/TestPointConverter.cs
@@
-253,13
+253,12
@@
namespace MonoTests.System.Drawing
}
[Test]
}
[Test]
- [ExpectedException (typeof (ArgumentException))]
public void TestCreateInstance_CaseSensitive ()
{
Hashtable ht = new Hashtable ();
ht.Add ("x", 2);
ht.Add ("Y", 3);
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]
@@
-305,10
+304,9
@@
namespace MonoTests.System.Drawing
}
[Test]
}
[Test]
- [ExpectedException (typeof (ArgumentException))]
public void ConvertFromInvariantString_string_exc_1 ()
{
public void ConvertFromInvariantString_string_exc_1 ()
{
-
ptconv.ConvertFromInvariantString ("1"
);
+
Assert.Throws<ArgumentException> (() => ptconv.ConvertFromInvariantString ("1")
);
}
[Test]
}
[Test]
@@
-341,10
+339,9
@@
namespace MonoTests.System.Drawing
}
[Test]
}
[Test]
- [ExpectedException (typeof (ArgumentException))]
public void ConvertFromString_string_exc_1 ()
{
public void ConvertFromString_string_exc_1 ()
{
-
ptconv.ConvertFromString ("1"
);
+
Assert.Throws<ArgumentException> (() => ptconv.ConvertFromString ("1")
);
}
[Test]
}
[Test]