Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/31/10 11:36:07 (14 years ago)
Author:
abeham
Message:

#922

  • Fixed most of the errors that surfaced in the test cases
  • Removed storable attribute from SymbolicExpressionTreeStringFormatter
  • Modified StorableConstructorTest that the StorableConstructor may also be public (such as in BoolValue)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/CloningRefactoring/HeuristicLab/3.3/Tests/StorableConstructorTest.cs

    r4658 r4696  
    3131          if (storableType.IsSealed && !storableConstructor.IsPrivate)
    3232            errorMessage.Append(Environment.NewLine + storableType.ToString() + ": Storable constructor must be private in sealed classes.");
    33           else if (!storableType.IsSealed && !storableConstructor.IsFamily)
    34             errorMessage.Append(Environment.NewLine + storableType.ToString() + ": Storable constructor must be protected.");
     33          else if (!storableType.IsSealed && !(storableConstructor.IsFamily || storableConstructor.IsPublic))
     34            errorMessage.Append(Environment.NewLine + storableType.ToString() + ": Storable constructor must be protected (can be public in rare cases).");
    3535        }
    3636      }
Note: See TracChangeset for help on using the changeset viewer.