Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/20/13 17:03:31 (11 years ago)
Author:
mkommend
Message:

#2088: Merged all changesets regarding the unit test restructuring in the stable branch.

Location:
stable
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Tests

  • stable/HeuristicLab.Tests/HeuristicLab-3.3/PluginDependenciesTest.cs

    r9456 r9885  
    2929using Microsoft.VisualStudio.TestTools.UnitTesting;
    3030
    31 namespace HeuristicLab_33.Tests {
     31namespace HeuristicLab.Tests {
    3232  [TestClass]
    3333  public class PluginDependenciesTest {
     
    5353
    5454    [TestMethod]
     55    [TestCategory("General")]
     56    [TestCategory("Essential")]
     57    [TestProperty("Time", "short")]
    5558    public void CheckReferenceAssembliesForPluginDependencies() {
    5659      StringBuilder errorMessage = new StringBuilder();
     
    7679
    7780    [TestMethod]
     81    [TestCategory("General")]
     82    [TestCategory("Essential")]
     83    [TestProperty("Time", "short")]
    7884    public void CheckPluginDependenciesForReferencedAssemblies() {
    7985      StringBuilder errorMessage = new StringBuilder();
     
    103109
    104110    private static Type GetPluginFromAssembly(Assembly assembly) {
    105       return assembly.GetExportedTypes().Where(t => typeof(IPlugin).IsAssignableFrom(t) && !t.IsAbstract && !t.IsInterface).FirstOrDefault();
     111      return assembly.GetExportedTypes().FirstOrDefault(t => typeof(IPlugin).IsAssignableFrom(t) && !t.IsAbstract && !t.IsInterface);
    106112    }
    107113
Note: See TracChangeset for help on using the changeset viewer.