public void ValueListWithMaxElemSetToZeroFailes() { MockOptionsWithValueListMaxElemEqZero options = new MockOptionsWithValueListMaxElemEqZero(); bool success = Parser.ParseArguments(new string[] { "some", "value" }, options); Assert.IsFalse(success); }
public void ValueListWithMaxElemSetToZeroSucceeds() { MockOptionsWithValueListMaxElemEqZero options = new MockOptionsWithValueListMaxElemEqZero(); bool success = Parser.ParseArguments(new string[] { }, options); Assert.IsTrue(success); Assert.AreEqual(0, options.Junk.Count); }