Dev2.Core.Tests.Services.ServerServiceConfigurationTest.ServerServiceConfiguration_StartService_WhenServiceNotRunningAndDoesNotExist_ExpectFalse C# (CSharp) Method

ServerServiceConfiguration_StartService_WhenServiceNotRunningAndDoesNotExist_ExpectFalse() private method

        public void ServerServiceConfiguration_StartService_WhenServiceNotRunningAndDoesNotExist_ExpectFalse()
        {
            //------------Setup for test--------------------------
            Mock<IPopupController> controller;
            var serverServiceConfiguration = CreateServerServiceConfiguration(false, false, false, out controller);

            //------------Execute Test---------------------------
            var result = serverServiceConfiguration.StartService();

            //------------Assert Results-------------------------
            Assert.IsFalse(result);
            controller.Verify(m => m.Show(It.IsAny<string>(), It.IsAny<string>(), It.IsAny<MessageBoxButton>(), It.IsAny<MessageBoxImage>(), It.IsAny<string>()), Times.Once());
        }
ServerServiceConfigurationTest