ParseOption() public method

public ParseOption ( string item ) : void
item string
return void
Example #1
0
 public static ConesoleConfiguration Parse(params string[] args)
 {
     var result = new ConesoleConfiguration();
     foreach(var item in args)
         result.ParseOption(item);
     if(result.testFilter == null)
         result.testFilter = _ => true;
     if(result.suiteFilter == null)
         result.suiteFilter = _ => true;
     return result;
 }
Example #2
0
        public static ConesoleConfiguration Parse(params string[] args)
        {
            var result = new ConesoleConfiguration();
            var paths = new List<string>();
            foreach(var item in args) {
                if(!IsOption(item))
                    paths.Add(Path.GetFullPath(item));
                else result.ParseOption(item);
            }

            result.AssemblyPaths = paths.ToArray();
            return result;
        }