예제 #1
0
        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);
        }
예제 #2
0
        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"));
        }
예제 #3
0
        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);
        }