public void ShouldReturnCorrectValuesForOptionsWithPrefixes()
        {
            var options         = new string[] { "-option1", "value1", "/option2", "value2" };
            var allowedPrefixes = new string[] { "-", "/" };
            var parser          = new CommandLineOptionsParser(options, new string[] {}, allowedPrefixes);

            Assert.AreEqual("value1", parser.GetValue("option1"));
            Assert.AreEqual("value2", parser.GetValue("option2"));
        }
        public void ShouldGiveCorrectOptionAndValue()
        {
            var options = new string[] { "option", "value" };
            var parser  = new CommandLineOptionsParser(options);

            Assert.AreEqual("value", parser.GetValue("option"), "Wrong value for option");
        }
        public void ShouldThrowOnUnParsedOption()
        {
            var options = new string[] { "option", "value" };

            Assert.Throws(typeof(IndexOutOfRangeException),
                          () =>
            {
                var parser = new CommandLineOptionsParser(options);
                parser.GetValue("option1");
            },
                          "Did not throw on unparsed option"
                          );
        }