Beispiel #1
0
        public void TestHasParameterOptionSuccess()
        {
            BaseInput input = new BaseInput(new string[] { "kappa", "-k", "keepo" });

            Assert.True(input.HasParameterOption("-k"));
            input = new BaseInput(new string[] { "kappa", "--kappaross", "keepo" });
            Assert.True(input.HasParameterOption("--kappaross"));
            Assert.False(input.HasParameterOption("--roflcopter"));

            input = new BaseInput(new string[] { "kappa", "--kappaross=keepo" });
            Assert.True(input.HasParameterOption("--kappaross"));
        }