public void GetReconfigureTimeShouldHandleNonUSDates()
        {
            string dateString  = "samedi 2 décembre 2006";
            IMock  mockCommand = new DynamicMock(typeof(ISynergyCommand));

            mockCommand.ExpectAndReturn("Execute", ProcessResultFixture.CreateSuccessfulResult(dateString), new IsAnything());
            SynergyConnectionInfo connectionInfo = new SynergyConnectionInfo();

            connectionInfo.FormatProvider = new CultureInfo("FR-fr");
            Synergy  synergy = new Synergy(connectionInfo, new SynergyProjectInfo(), (ISynergyCommand)mockCommand.MockInstance, null);
            DateTime time    = synergy.GetReconfigureTime();

            mockCommand.Verify();
        }
        public void GetReconfigureTimeShouldHandleNonUSDates()
        {
            string dateString  = "samedi 2 décembre 2006";
            var    mockCommand = new Mock <ISynergyCommand>();

            mockCommand.Setup(command => command.Execute(It.IsAny <ProcessInfo>())).Returns(ProcessResultFixture.CreateSuccessfulResult(dateString)).Verifiable();
            SynergyConnectionInfo connectionInfo = new SynergyConnectionInfo();

            connectionInfo.FormatProvider = new CultureInfo("FR-fr");
            Synergy  synergy = new Synergy(connectionInfo, new SynergyProjectInfo(), (ISynergyCommand)mockCommand.Object, null);
            DateTime time    = synergy.GetReconfigureTime();

            mockCommand.Verify();
        }