public void Test2()
        {
            var env = EnvManager.Generate("Hello");

            var settings = new ParallelEnvsSettings();

            settings.EnvNames.Add(env.Name);

            EnvManager.AddFile(ref env, existsFilePath, settings);
        }
        public void Test3()
        {
            var env = EnvManager.Generate("Hello");

            var settings = new ParallelEnvsSettings();

            settings.EnvNames.Add(env.Name);

            Assert.Throws <FileNotFoundException>(() =>
            {
                EnvManager.AddFile(ref env, unknownFilePath, settings);
            });
        }
Beispiel #3
0
        public void Execute(List <string> args)
        {
            if (args.Count < 2)
            {
                Console.WriteLine(Description);
                return;
            }

            var stream = new EnvStream(Settings.ApplicationWorkDirectoryPath, args[0]);

            var env = stream.LoadEnv();

            {
                EnvManager.AddFile(ref env, args[1], Settings);
            }
            stream.WriteEnv(env);

            Console.WriteLine($"Add {args[1]} to {args[0]}");
        }