示例#1
0
 public void TestCL_TargetValueCompositeTrailingBoolMissingTarget() {
     TargetValueCompositeCommandLine sample1 = new TargetValueCompositeCommandLine(
         new String[] { "-i", "12345", "-o" }
     );
     Assert.AreEqual(1, sample1.MissingRequiredCommandLineOptions.Count);
     Assert.AreEqual(12345, sample1.TestInt);
     Assert.IsTrue(sample1.OptionalBool);
 }
示例#2
0
 public void TestCL_TargetValueComposite() {
     TargetValueCompositeCommandLine sample1 = new TargetValueCompositeCommandLine(
         new String[] { "-i", "12345", "targetValue" }
     );
     Assert.AreEqual(0, sample1.MissingRequiredCommandLineOptions.Count);
     Assert.AreEqual("targetValue", sample1.TargetString);
     Assert.AreEqual(12345, sample1.TestInt);
 }