public GetResourceTextFile ( string filename ) : string | ||
filename | string | The name of the resource. |
return | string |
public void SetupForAllTests() { var util = new TestUtils(); var cSharpScript = util.GetResourceTextFile("TestScriptMethodsAndLitmusTests.cs"); pathToScriptFile = Path.GetTempFileName(); using (var textWriter = File.CreateText(pathToScriptFile)) { textWriter.Write(cSharpScript); } scriptMethodResolver = new ScriptMethodResolver(); scriptMethodResolver.BuildResolversFromScriptFile(pathToScriptFile); }
public void SetupForAllTests() { var util = new TestUtils (); var xmlStr = util.GetResourceTextFile ("TestFeedFilePlan.xml"); using (var reader = new StringReader (xmlStr)) { feedFilePlan = (FeedFilePlan) new XmlSerializer (typeof(FeedFilePlan)).Deserialize (reader); } methodResolver = new Dictionary<string, IMethodResolver> { { "zz", new TestMethodResolver () }, }; }