Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
 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);
 }
Esempio n. 4
0
 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);
 }