コード例 #1
0
        public void ValueListWithMaxElemSetToZeroFailes()
        {
            MockOptionsWithValueListMaxElemEqZero options = new MockOptionsWithValueListMaxElemEqZero();
            bool success = Parser.ParseArguments(new string[] { "some", "value" }, options);

            Assert.IsFalse(success);
        }
コード例 #2
0
        public void ValueListWithMaxElemSetToZeroSucceeds()
        {
            MockOptionsWithValueListMaxElemEqZero options = new MockOptionsWithValueListMaxElemEqZero();
            bool success = Parser.ParseArguments(new string[] { }, options);

            Assert.IsTrue(success);
            Assert.AreEqual(0, options.Junk.Count);
        }