Binboo.Core.Tests.Tests.Support.ArgumentRecorder.ArgumentsFor C# (CSharp) Method

ArgumentsFor() public method

public ArgumentsFor ( string command ) : IEnumerable
command string
return IEnumerable
        public IEnumerable<string> ArgumentsFor(string command)
        {
            if (!_arguments.ContainsKey(command))
            {
                throw new ArgumentException(string.Format("No arguments found for command {0}", command), "command");
            }

            return from arg in _arguments[command].Values
                   where arg.IsPresent
                   from value in arg.Values
                   select value;
        }