public void RemoveTest() { var lstCommands = CommandMgr.GetCommands(); Assert.AreEqual(2, lstCommands.Count, "Error, cleaned CommandMgr"); TestContext.WriteLine($"List.Count After = {lstCommands.Count}"); CommandMgr.RemoveCommand(new Command { Name = "test1" }); CommandMgr.RemoveCommand(new Command { Name = "test2" }); Assert.AreEqual(0, CommandMgr.GetCommands().Count, "Error removing commands"); TestContext.WriteLine($"List.Count Before = {CommandMgr.GetCommands().Count}"); }