Esempio n. 1
0
 /// <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));
 }
Esempio n. 2
0
 private MockException(MockExceptionReason reason, string message)
     : base(message)
 {
     this.reason = reason;
 }