예제 #1
0
        public void TestGetServices()
        {
            var services = SCM.GetServices("localhost");

            Assert.IsTrue(services.Count > 5);
            Assert.IsNotNull(services.FirstOrDefault(S => S.DisplayName == "Netlogon"));
        }
예제 #2
0
        public void TestGetServicesBadComputerName()
        {
            var results = SCM.GetServices("blah");

            Assert.IsNull(results);
        }