Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/16/15 14:05:23 (9 years ago)
Author:
jkarder
Message:

#2262: refactored scripting unit tests

  • changed code template loading
  • minor code changes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Tests/HeuristicLab.Scripting-3.3/ScriptingUtils.cs

    r11735 r11789  
    2121
    2222using System;
    23 using System.IO;
    2423using System.Threading;
    2524using HeuristicLab.Scripting;
     
    4746      return (T)a.VariableStore[resultName];
    4847    }
    49 
    50     public static string LoadScriptCodeFromFile(string scriptName) {
    51       string path = Path.Combine(ScriptSourcesDirectory, scriptName + ScriptSourceFileExtension);
    52       return File.ReadAllText(path);
    53     }
    5448  }
    5549}
Note: See TracChangeset for help on using the changeset viewer.