public void WhenArgumentPresent_ThenReturnTrue() { var args = new[] { "-a" }; var sut = new CmdArgInfo(args, new[] { _allowedAllFilesArg }); var result = sut.HasArgument("allfiles"); Assert.That(result, Is.True); }
public void WhenArgumentNotPresent_ThenReturnFalse() { var args = new[] { "-p", value }; var sut = new CmdArgInfo(args, new[] { _allowedPathArg, _allowedAllFilesArg }); var result = sut.HasArgument("allfiles"); Assert.That(result, Is.False); }