Example #1
0
        public void AddTest()
        {
            //Clean the files
            if (File.Exists(XMLTest.XMLPATH))
            {
                File.Delete(XMLTest.XMLPATH);
            }

            CommandMgr.Load(XMLTest.XMLPATH);
            CommandMgr.AddCommand(new Command {
                Name = "test1", Path = "test1.exe"
            });
            CommandMgr.AddCommand(new Command {
                Name = "test2", Path = "test2.exe"
            });
            Assert.AreEqual(2, CommandMgr.GetCommands().Count, "Error adding commands");
            TestContext.WriteLine($"List.Count Before = {CommandMgr.GetCommands().Count}");
        }