public void WhenArgsDifferentThan3ShouldReturnInvalidArgs() { var argsValidator = new ArgsValidator(); var args = argsValidator.ValidateArguments(new string[0]); Assert.False(args.IsValid); }
public void WhenArgsEqual3ShouldProcessArgumentsCorrectly() { var argsValidator = new ArgsValidator(); var args = argsValidator.ValidateArguments(new string[] { "arg1", "arg2", "arg3" }); Assert.True(args.IsValid); Assert.Equal("arg1", args.InputFile); Assert.Equal("arg2", args.OutputFile); Assert.Equal("arg3", args.BaseDir); }