public void ArgumentPassed_ArgumentPassed_CaseInsensitive()
        {
            IEnumerable<string> args = @"/a /b /c".Split(' ');
            CommandLineArguments target = new CommandLineArguments(args);

            string[] expectedArgs = new string[] { "a", "A", "b", "B", "c", "C" };
            bool expected = true;
            bool actual;

            foreach (string arg in expectedArgs)
            {
                actual = target.ArgumentPassed(arg);
                Assert.AreEqual(expected, actual);
            }
        }
        public void ArgumentPassed_ArgumentNotPassed_ReturnsFalse()
        {
            IEnumerable<string> args = @"/a /b /c".Split(' ');
            CommandLineArguments target = new CommandLineArguments(args);

            string argument = "d";
            bool expected = false;
            bool actual = target.ArgumentPassed(argument);

            Assert.AreEqual(expected, actual);
        }
        public void ArgumentPassed_ArgumentPassed_ReturnsFalseIfSlashIncluded()
        {
            IEnumerable<string> args = @"/a /b /c".Split(' ');
            CommandLineArguments target = new CommandLineArguments(args);

            string arg = @"/b"; //passed as argument, but when asking for it, slash should not be included
            bool expected = false;
            bool actual = target.ArgumentPassed(arg);

            Assert.AreEqual(expected, actual);
        }
        public void ArgumentPassed_NoArguments_ReturnsFalse()
        {
            IEnumerable<string> args = null;
            CommandLineArguments target = new CommandLineArguments(args);

            string argument = "test";
            bool expected = false;
            bool actual = target.ArgumentPassed(argument);

            Assert.AreEqual(expected, actual);
        }