Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/19/12 12:20:35 (12 years ago)
Author:
abeham
Message:

#1722: Fixed error message display when cloning fails

File:
1 edited

Legend:

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

    r8046 r8052  
    126126          clone = (IDeepCloneable)item.Clone(new Cloner());
    127127        } catch (Exception e) {
    128           TestContext.WriteLine("ERROR! " + e.GetType().Name + " was thrown while cloning " + deepCloneableType.Name + ".");
     128          TestContext.WriteLine(Environment.NewLine + deepCloneableType.FullName + ":");
     129          TestContext.WriteLine("ERROR! " + e.GetType().Name + @" was thrown during cloning.
     130All IDeepCloneable items with a default constructor should be cloneable when using that constructor!");
    129131          success = false;
    130132          continue;
Note: See TracChangeset for help on using the changeset viewer.