/// <summary> /// Supports the serialization infrastructure. /// </summary> /// <param name="info">Serialization information.</param> /// <param name="context">Streaming context.</param> protected MockException( System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.reason = (MockExceptionReason)info.GetValue("reason", typeof(MockExceptionReason)); }
private MockException(MockExceptionReason reason, string message) : base(message) { this.reason = reason; }