public void CaseWithDirectoryArgWithoutDirectoryReturnsFalse()
        {
            string arguments = "-l -p 232 -d";
            ARGS   a         = new ARGS();

            a.main(arguments.Split(' '));

            Assert.AreEqual(false, a.hasDirectory);
        }
        public void CaseWithPortReturnsTrue()
        {
            string arguments = "-p 8080";
            ARGS   a         = new ARGS();

            a.main(arguments.Split(' '));

            Assert.AreEqual(true, a.hasPort);
        }
        public void CaseWithDirectoryReturnsTrue()
        {
            string arguments = "-l -p 232 -d /logs";
            ARGS   a         = new ARGS();

            a.main(arguments.Split(' '));

            Assert.AreEqual(true, a.hasDirectory);
        }
        public void CaseWithLoginReturnsTrue()
        {
            string argument = "-l";
            ARGS   a        = new ARGS();

            a.main(argument.Split(' '));

            Assert.AreEqual(true, a.hasLogin);
        }
        public void CaseWithoutArgsLoginReturnsFalse()
        {
            string argument = "";
            ARGS   a        = new ARGS();

            a.main(argument.Split(' '));

            Assert.AreEqual(false, a.hasLogin);
        }
        public void CaseWithLoginAndPortReturnsLoginTruePortFalse()
        {
            string arguments = "-l -p ";
            ARGS   a         = new ARGS();

            a.main(arguments.Split(' '));

            Assert.AreEqual(true, a.hasLogin);
            Assert.AreEqual(false, a.hasPort);
        }
        public void CaseWithoutAnyArgumentsReturnsFalse()
        {
            string argument = "ñlakjsdfñlkjasdf";
            ARGS   a        = new ARGS();

            a.main(argument.Split(' '));

            Assert.AreEqual(false, a.hasLogin);
            Assert.AreEqual(false, a.hasPort);
            Assert.AreEqual(false, a.hasDirectory);
        }
        public void CaseWithoutPortWithDirectoryArgAndLoginReturnsBothTrue()
        {
            string arguments = "-l -d /logs";
            ARGS   a         = new ARGS();

            a.main(arguments.Split(' '));

            Assert.AreEqual(true, a.hasDirectory);
            Assert.AreEqual(false, a.hasPort);
            Assert.AreEqual(true, a.hasLogin);
        }