示例#1
0
        public static ICompilationUnitBuilder AddSourceFiles(this ICompilationUnitBuilder compilationUnitBuilder, params string[] sourceFiles)
        {
            ICollection <IStreamSource> sources = compilationUnitBuilder.Options.Sources;

            foreach (string sourcePath in sourceFiles ?? Array.Empty <string>())
            {
                IStreamSource inputSource = new FileInputSource(sourcePath);
                sources.Add(inputSource);
            }

            return(compilationUnitBuilder);
        }
 public UnitTest1()
 {
     _queue           = new Queue <string>();
     _dict            = new Dictionary <string, int>();
     _fileInputSource = new FileInputSource(_queue, _dict, _globalSignTestOptions);
 }