public void TestCL_SampleSimple() { SampleCommandLine sample = new SampleCommandLine( new String[] { "-i", "1234" } ); Assert.AreEqual(1234, sample.IntValue); Assert.AreEqual("whatever", sample.StringValue); Assert.AreEqual(false, sample.BoolValue); }
public void TestCL_SampleMultiple() { SampleCommandLine sample = new SampleCommandLine( new String[] { "-i", "1234", "-s", "STRING", "-b", "TARGET" } ); Assert.AreEqual(1234, sample.IntValue); Assert.AreEqual("STRING", sample.StringValue); Assert.AreEqual(true, sample.BoolValue); }
public void TestCL_SampleDefaults() { SampleCommandLine sample = new SampleCommandLine( new String[] {} ); Assert.AreEqual(123, sample.IntValue); Assert.AreEqual("whatever", sample.StringValue); Assert.AreEqual(false, sample.BoolValue); }
public void TestCL_SamplePrintUsage() { SampleCommandLine sample = new SampleCommandLine( new String[] { "-?" } ); Assert.AreEqual(123, sample.IntValue); Assert.AreEqual("whatever", sample.StringValue); Assert.AreEqual(false, sample.BoolValue); Assert.AreEqual(true, sample.DoPrintUsage); }