Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8078


Ignore:
Timestamp:
06/21/12 16:05:34 (12 years ago)
Author:
mkommend
Message:

#1877: Corrected TestAllDeepCloneables unit test to use the ReferenceEqualityComparer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/DeepCloneableCloningTest.cs

    r8052 r8078  
    125125        try {
    126126          clone = (IDeepCloneable)item.Clone(new Cloner());
    127         } catch (Exception e) {
     127        }
     128        catch (Exception e) {
    128129          TestContext.WriteLine(Environment.NewLine + deepCloneableType.FullName + ":");
    129130          TestContext.WriteLine("ERROR! " + e.GetType().Name + @" was thrown during cloning.
     
    145146      var clonedObjects = new HashSet<object>(clone.GetObjectGraphObjects(excludeStaticMembers: true).Where(x => !x.GetType().IsValueType), new ReferenceEqualityComparer());
    146147
    147       return originalObjects.Intersect(clonedObjects);
     148      return originalObjects.Intersect(clonedObjects, new ReferenceEqualityComparer());
    148149    }
    149150
Note: See TracChangeset for help on using the changeset viewer.