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