public void GetOptionsShouldDetectRelativePath() { var arguments = new[] {"-unix-paths", "--relative-paths"}; var options = _options.ParseOptions(arguments); Assert.IsNotNull(options); Assert.AreEqual(1, options.Count); Assert.IsTrue(options.Contains(SourceDumperOptions.RelativePaths)); Assert.IsNotNull(arguments[0]); Assert.IsNull(arguments[1]); }
public void GetOptionsShouldDetectOutputFile() { var arguments = new[] {"myfiles", "--output-file"}; var options = _options.ParseOptions(arguments); Assert.IsNotNull(options); Assert.AreEqual(1, options.Count); Assert.IsTrue(options.Contains(SourceDumperOptions.OutputFile)); Assert.IsNotNull(arguments[0]); Assert.IsNull(arguments[1]); }