public void CreateProvider_SerializeConfigurationErrorsException_ThrowsPlatformNotSupportedException() { Exception ex = Assert.ThrowsAny <Exception>(() => CodeDomProvider.CreateProvider(string.Empty)); AssertIsConfigurationErrorsException(ex); BinaryFormatterHelpers.AssertExceptionDeserializationFails(ex.GetType()); }
public void AssertExceptionDeserializationFails() { BinaryFormatterHelpers.AssertExceptionDeserializationFails <ValidationException>(); }
public void AssertExceptionDeserializationFails() { BinaryFormatterHelpers.AssertExceptionDeserializationFails <RuntimeBinderException>(); }
public static void Deserialize_NetCore_ThrowsPlatformNotSupportedException() { BinaryFormatterHelpers.AssertExceptionDeserializationFails <Win32Exception>(); }