Free cookie consent management tool by TermsFeed Policy Generator

Changeset 4483 for trunk


Ignore:
Timestamp:
09/24/10 10:27:04 (14 years ago)
Author:
gkronber
Message:

Improved unit test for contents. #1202

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/Tests/ContentViewTests.cs

    r4068 r4483  
    11using System;
    22using System.Linq;
    3 using HeuristicLab.Common;
    43using HeuristicLab.MainForm.WindowsForms;
    54using HeuristicLab.PluginInfrastructure;
    65using Microsoft.VisualStudio.TestTools.UnitTesting;
     6using HeuristicLab.Common;
    77
    88namespace HeuristicLab.MainForm.WindowsForms_3._3.Tests {
     
    8383        IContentView view = (IContentView)Activator.CreateInstance(viewType);
    8484        ContentView_Accessor accessor = new ContentView_Accessor(new PrivateObject(view));
    85         accessor.OnContentChanged();
     85        try {
     86          accessor.OnContentChanged();
     87        }
     88        catch (Exception ex) {
     89          Assert.Fail(viewType.ToString() + Environment.NewLine + ex.Message);
     90        }
    8691      }
    8792    }
Note: See TracChangeset for help on using the changeset viewer.