コード例 #1
0
        public void GetProcesses()
        {
            var processes = ProcessExtensions.GetProcesses();

            var currentProcess = Process.GetCurrentProcess();

            Assert.IsTrue(processes.Any(p => p.ProcessId == currentProcess.Id), "Current process is not in the list of processes");
            CollectionAssert.AllItemsAreUnique(processes.ToList());
        }