示例#1
0
 public void IfTwoParamtersPassed()
 {
     var parameters = new string[] { "file.js", "file.min.js" };
     var expectedOutput = new string[] { "file.js", "file.min.js" };
     var parser = new ParameterParser(parameters);
     Assert.AreEqual(expectedOutput, parser.Parameters);
 }
示例#2
0
文件: Reduce.cs 项目: twokul/reduce
 public Reduce(string[] args)
 {
     Parser = new ParameterParser(args);
     CurrentPath = Environment.CurrentDirectory;
     Combine();
 }
示例#3
0
 public void IfParametersNull()
 {
     var expectedOutput = new string[] { };
     var parser = new ParameterParser(null);
     Assert.AreEqual(expectedOutput, parser.Parameters);
 }
示例#4
0
 public void IfNoParametersPassed()
 {
     var expectedOutput = new string [] { };
     var parser = new ParameterParser(new string [] {});
     Assert.AreEqual(expectedOutput, parser.Parameters);
 }