Example #1
0
 //[TestMethod]
 public void RemoveBlocked()
 {
     var manager = new ProcessManager();
     List<string> blocked = new List<string>()
         {
             "notepad++.exe", "minecraft.exe", "leagueoflegends.exe"
         };
     foreach (var app in blocked)
     {
         manager.BlockedApps.Add(app);
     }
     List<string> expected = new List<string>()
         {
            "notepad++.exe", "minecraft.exe"
         };
     manager.RemoveBlocked("leagueoflegends.exe");
     Assert.AreSame(expected, manager.BlockedApps);
 }