Esempio n. 1
0
            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);
            }
Esempio n. 2
0
            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);
            }