/// <summary>
 /// Initializes a new instance of the <see cref="CompareNetObjectsBasedExceptionComparer"/> class.
 /// </summary>
 /// <param name="comparer">The comparer.</param>
 /// <exception cref="System.ArgumentNullException">Thrown when the <paramref name="comparer"/> is <c>null</c>.</exception>
 public CompareNetObjectsBasedExceptionComparer(ICompareObjects comparer)
 {
     if (comparer == null)
     {
         throw new ArgumentNullException("comparer");
     }
     _comparer = comparer;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CompareNetObjectsBasedExceptionComparer"/> class.
 /// </summary>
 /// <param name="comparer">The comparer.</param>
 /// <exception cref="System.ArgumentNullException">Thrown when the <paramref name="comparer"/> is <c>null</c>.</exception>
 public CompareNetObjectsBasedExceptionComparer(ICompareObjects comparer)
 {
     if (comparer == null) throw new ArgumentNullException("comparer");
     _comparer = comparer;
 }