public void VerifyDateParser() { string expected = "10/31/2001 18:52"; string actual = Pvcs.GetDateString(new DateTime(2001, 10, 31, 18, 52, 13), CultureInfo.InvariantCulture.DateTimeFormat); Assert.AreEqual(expected, actual); }
public void VerifyDateStringParser() { DateTime expected = new DateTime(2005, 05, 01, 12, 0, 0, 0); DateTime actual = Pvcs.GetDate("May 1 2005 12:00:00", CultureInfo.InvariantCulture); Assert.AreEqual(expected, actual); expected = new DateTime(2005, 10, 01, 15, 0, 0, 0); actual = Pvcs.GetDate("Oct 1 2005 15:00:00", CultureInfo.InvariantCulture); Assert.AreEqual(expected, actual); }
protected void CreatePvcs() { mockParser = new DynamicMock(typeof(IHistoryParser)); mockExecutor = new DynamicMock(typeof(ProcessExecutor)); pvcs = new Pvcs((IHistoryParser)mockParser.MockInstance, (ProcessExecutor)mockExecutor.MockInstance); }
protected void CreatePvcs() { mockParser = new Mock <IHistoryParser>(); mockExecutor = new Mock <ProcessExecutor>(); pvcs = new Pvcs((IHistoryParser)mockParser.Object, (ProcessExecutor)mockExecutor.Object); }