static void Main(string[] args) { var val = new ValidateArguments(); var result = val.Validate(new[] { "--Name", "SOME_NAME", "--count", "10" }); var result2 = val.Validate(new[] { "--name", "SOME_NAME", "--count", "10", "--help" }); Console.WriteLine("Hello World!"); }
static void Main(string[] args) { var validator = new ValidateArguments(); var testString1 = new [] { "--name" }; var testString2 = new [] { "--name", "test" }; var testString3 = new [] { "--name", "--count" }; var testString4 = new [] { "anme", "test" }; Console.WriteLine(validator.Validate(testString4)); }
public void Setup() { _validateArguments = new ValidateArguments(); }