Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/20/08 11:08:04 (17 years ago)
Author:
gkronber
Message:

removed silly assertion statements (ticket #12)

Location:
trunk/sources/HeuristicLab.PluginInfrastructure/BaseClasses
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.PluginInfrastructure/BaseClasses/ApplicationBase.cs

    r2 r8  
    3939
    4040      // exactly one attribute of the type ClassInfoAttribute must be given
    41       Trace.Assert(pluginAttributes.Length == 1);
     41      if(pluginAttributes.Length != 1) {
     42        throw new InvalidPluginException();
     43      }
    4244
    4345      // after the assertion we are sure that the array access will not fail
  • trunk/sources/HeuristicLab.PluginInfrastructure/BaseClasses/PluginBase.cs

    r2 r8  
    4444
    4545      // exactly one attribute of the type ClassInfoAttribute must be given
    46       Trace.Assert(pluginAttributes.Length == 1);
     46      if(pluginAttributes.Length != 1) {
     47        throw new InvalidPluginException();
     48      }
    4749
    4850      // after the assertion we are sure that the array access will not fail
Note: See TracChangeset for help on using the changeset viewer.