public void CreateProvider_SerializeConfigurationErrorsException_ThrowsPlatformNotSupportedException()
        {
            Exception ex = Assert.ThrowsAny <Exception>(() => CodeDomProvider.CreateProvider(string.Empty));

            AssertIsConfigurationErrorsException(ex);

            BinaryFormatterHelpers.AssertExceptionDeserializationFails(ex.GetType());
        }
示例#2
0
 public void AssertExceptionDeserializationFails()
 {
     BinaryFormatterHelpers.AssertExceptionDeserializationFails <ValidationException>();
 }
示例#3
0
 public void AssertExceptionDeserializationFails()
 {
     BinaryFormatterHelpers.AssertExceptionDeserializationFails <RuntimeBinderException>();
 }
示例#4
0
 public static void Deserialize_NetCore_ThrowsPlatformNotSupportedException()
 {
     BinaryFormatterHelpers.AssertExceptionDeserializationFails <Win32Exception>();
 }