public void ProperlyInitializeProperties_WhenCalled()
            {
                // Arrange
                SUT action = new SUT(Tools.GetXmlFragment("StopService.CustAct"));

                // Act

                // Assert
                Assert.AreEqual(action.ServiceName, "AdobeARMservice");
            }
            public void DoesNotThrowException_WhenTheServiceDoesNotExists()
            {
                // Arrange
                SUT action      = new SUT(Tools.GetXmlFragment("StopServiceThatDoesNotExists.CustAct"));
                var finalResult = Tools.GetReturnCodeAction();

                // Act
                action.Run(ref finalResult);

                // Assert
            }
            public void DoesNotChangeServiceState_WhenTheServiceIsAlreadyStopped()
            {
                // Arrange
                SUT action      = new SUT(Tools.GetXmlFragment("StopService.CustAct"));
                var finalResult = Tools.GetReturnCodeAction();

                // Act
                Tools.StopService(action.ServiceName);
                Assert.IsFalse(Tools.IsServiceRunning(action.ServiceName));
                action.Run(ref finalResult);

                // Assert
                Assert.IsFalse(Tools.IsServiceRunning(action.ServiceName));
            }
            public void StopTheService_WhenCalledTheServiceIsStarted()
            {
                // Arrange
                SUT action      = new SUT(Tools.GetXmlFragment("StopService.CustAct"));
                var finalResult = Tools.GetReturnCodeAction();

                // Act
                Tools.StartService(action.ServiceName);
                Assert.IsTrue(Tools.IsServiceRunning(action.ServiceName));
                action.Run(ref finalResult);

                // Assert
                Assert.IsFalse(Tools.IsServiceRunning(action.ServiceName));
            }