public void With_NullArguments() { // Arrange var tool = new CommandLineTool(); // Act tool.ProcesOutputFountainFilePath(null, null, null); // Assert // Without arguments the function should process nothing. }
public void With_InputFountainFile() { // Arrange const string inputFilePath = @"generating_testfile.ink"; const string startingDirectory = @"C:\Test"; var parsedOptions = new ParsedCommandLineOptions() { InputFilePath = inputFilePath }; var processedOptions = new CommandLineToolOptions(); var tool = new CommandLineTool(); // Act tool.ProcesOutputFountainFilePath(parsedOptions, processedOptions, startingDirectory); // Assert parsedOptions.Should().NotBeNull("because the parsed options object was given"); processedOptions.Should().NotBeNull("because the processed options object was given"); processedOptions.RootedOutputFountainFilePath.Should().Be(@"C:\Test\generating_testfile.ink.fountain", "because it was given"); }