Exemplo n.º 1
0
        public void OnCommandLineWithNoPrefixTest()
        {
            string[]     args = new[] { "-alpha:start", "-no-beta", "dummy", "-gamma:end" };
            WithBoolTrue wb   = TrueBoolUnitTests.Parse(args);

            Assert.IsFalse(wb.Beta);
        }
Exemplo n.º 2
0
        public void WithFalseTest()
        {
            string[]     args = new[] { "-alpha:start", "-beta:false", "dummy", "-gamma:end" };
            WithBoolTrue wb   = TrueBoolUnitTests.Parse(args);

            Assert.IsFalse(wb.Beta);
        }
Exemplo n.º 3
0
        public void OnCommandLineTest()
        {
            string[]     args = new[] { "-alpha:start", "-beta", "-gamma:end" };
            WithBoolTrue wb   = TrueBoolUnitTests.Parse(args);

            Assert.IsTrue(wb.Beta);
        }