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); }
public Reduce(string[] args) { Parser = new ParameterParser(args); CurrentPath = Environment.CurrentDirectory; Combine(); }
public void IfParametersNull() { var expectedOutput = new string[] { }; var parser = new ParameterParser(null); Assert.AreEqual(expectedOutput, parser.Parameters); }
public void IfNoParametersPassed() { var expectedOutput = new string [] { }; var parser = new ParameterParser(new string [] {}); Assert.AreEqual(expectedOutput, parser.Parameters); }