public void AddsPlugins() { var program = new Program(new FakeApplicationEnvironment()); program.ParseArguments(new string[] { "--plugins", "/a/b/c/d" }); Assert.Contains("/a/b/c/d", program.PluginPaths); }
public void AddsAPluginByName() { var program = new Program(new FakeApplicationEnvironment()); program.ParseArguments(new string[] { "--plugin-name", "PluginA", "--plugin-name", "PluginB" }); Assert.True(program.PluginNames.Any(z => z.Key == "PluginA")); Assert.True(program.PluginNames.Any(z => z.Key == "PluginB")); }
public void SetsSolutionRoot() { var program = new Program(new FakeApplicationEnvironment()); program.ParseArguments(new string[] { "-s", "/path/to/project" }); Assert.Equal(Path.GetFullPath("/path/to/project"), program.SolutionRoot); }