Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/22/19 13:50:43 (5 years ago)
Author:
jkarder
Message:

#2999: excluded respective views from ContentViewAttributeTest

File:
1 edited

Legend:

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

    r16565 r16703  
    2424using HeuristicLab.Common;
    2525using HeuristicLab.MainForm;
    26 using HeuristicLab.MainForm.WindowsForms;
    2726using HeuristicLab.PluginInfrastructure;
    2827using Microsoft.VisualStudio.TestTools.UnitTesting;
     
    3837      //get all non-generic and instantiable classes which implement IContentView
    3938      foreach (Type viewType in ApplicationManager.Manager.GetTypes(typeof(IContentView))) {
     39        // jkarder: skip this test for the SymbolicDataAnalysisModelMathView (and for views that derive from it)
     40        // reason: our new build agent cannot create an instance of this view due to the use of System.Windows.Forms.WebBrowser
     41        if (typeof(HeuristicLab.Problems.DataAnalysis.Symbolic.Views.SymbolicDataAnalysisModelMathView).IsAssignableFrom(viewType))
     42          continue;
     43
    4044        //get all ContentAttributes on the instantiable view
    4145        foreach (ContentAttribute attribute in viewType.GetCustomAttributes(typeof(ContentAttribute), false).Cast<ContentAttribute>()) {
     
    4852        try {
    4953          accessor.Invoke("OnContentChanged");
    50         }
    51         catch (Exception ex) {
     54        } catch (Exception ex) {
    5255          Assert.Fail(viewType.ToString() + Environment.NewLine + ex.Message);
    5356        }
Note: See TracChangeset for help on using the changeset viewer.