Пример #1
0
 public void Run_preferred_method_for_overload_TestForB_WithGlobal()
 {
     var sut = new Sample_74();
     Parser.Run(new[]
         {
             "foo",
             "-b:3",
             "-c:2",
             "-bar:mike"
         }, sut);
     Assert.That(sut.IsBCalled, Is.True);
 }
Пример #2
0
 public void Run_preferred_method_for_overload_TestForA()
 {
     var sut = new Sample_74();
     Parser.Run(new[] { "foo", "-a:3" }, sut);
     Assert.That(sut.IsACalled, Is.True);
 }