Example #1
0
        public void OnCommandLineWithNoPrefixTest()
        {
            string[] args = new[] { "-alpha:start", "-no-beta", "dummy", "-gamma:end" };
            WithBool wb   = FalseBoolUnitTests.Parse(args);

            Assert.IsFalse(wb.Beta);
        }
Example #2
0
        public void WithFalseTest()
        {
            string[] args = new[] { "-alpha:start", "-beta:false", "dummy", "-gamma:end" };
            WithBool wb   = FalseBoolUnitTests.Parse(args);

            Assert.IsFalse(wb.Beta);
        }
Example #3
0
        public void TrueNotOnCommandLineTest()
        {
            string[] args = new[] { "-alpha:start", "-gamma:end" };
            WithBool wb   = FalseBoolUnitTests.Parse(args);

            Assert.IsFalse(wb.Beta);
        }