public void XmlSerialization_Invalid(string xml, Type expectedExceptionType) { TestHelper.AssertXmlInvalid <LocalTime>(xml, expectedExceptionType); }
public void XmlSerialization_Invalid(string xml, Type expectedExceptionType) { DateTimeZoneProviders.Serialization = DateTimeZoneProviders.Tzdb; TestHelper.AssertXmlInvalid <ZonedDateTime>(xml, expectedExceptionType); }