Example #1
0
 static void Run(File file)
 {
     Tracer.Line(Tracer.FilePosn(file.FullName,0,0,0,0,FilePositionTag.Test));
     if(file.IsDirectory)
         foreach(var item in file.Items)
             Run(item);
     else if(file.Exists && file.Extension == "renitest")
         Run(new Source(file));
 }
Example #2
0
 public Source(File file, string identifier = null)
     : this(new FileSourceProvider(file), identifier ?? file.FullName) { }
 public FileSourceProvider(File file, bool useCache = true)
 {
     File = file;
     if(useCache)
         DataCache = new ValueCache<string>(() => File.String);
 }