Ejemplo n.º 1
0
 public void ItCanReadAPortValue()
 {
     var input = new [] {"-p", "5050"};
     var testOptions = new InputOption(input);
     testOptions.Port.ShouldEqual(5050);
     testOptions.Directory.ShouldEqual(_defaultDirectory);
 }
Ejemplo n.º 2
0
 public void ItCanReadAPortAndDirectoryValue()
 {
     var input = new [] {"-p", "5050", "-d", @"\some\path\"};
     var testOptions = new InputOption(input);
     testOptions.Port.ShouldEqual(5050);
     testOptions.Directory.ShouldEqual(@"\some\path\");
 }