diff --git a/Tests/VocaluxeLib/XML/CXmlSerializerTest.cs b/Tests/VocaluxeLib/XML/CXmlSerializerTest.cs index 19365e1a..89656799 100644 --- a/Tests/VocaluxeLib/XML/CXmlSerializerTest.cs +++ b/Tests/VocaluxeLib/XML/CXmlSerializerTest.cs @@ -137,7 +137,10 @@ namespace Tests.VocaluxeLib.XML private static void _AssertFail(String xmlString) where T2 : Exception where T : new() { var deserializer = new CXmlDeserializer(); - Assert.Throws(() => deserializer.DeserializeString(xmlString)); + + Exception exception = + Assert.Catch(() => deserializer.DeserializeString(xmlString)); + Assert.IsInstanceOf(typeof(T2), exception); } private static T _AssertSerDeserMatch(string xmlString) where T : new()