public void VerifyCreateQueryProcessInfoBasic() { string fromtime = "01/02/2003 00:00:00"; string totime = "23/02/2006 23:14:05"; IntegrationRequest request = new IntegrationRequest(BuildCondition.ForceBuild, "source", null); IntegrationSummary lastSummary = new IntegrationSummary(IntegrationStatus.Success, "label", "lastlabel", DateTime.Now); IntegrationResult from = new IntegrationResult("test", @"c:\workspace", @"c:\artifacts", request, lastSummary); from.StartTime = DateTime.ParseExact(fromtime, PlasticSCM.DATEFORMAT, System.Globalization.CultureInfo.InvariantCulture); IntegrationResult to = new IntegrationResult("test", @"c:\workspace", @"c:\artifacts", request, lastSummary); to.StartTime = DateTime.ParseExact(totime, PlasticSCM.DATEFORMAT, System.Globalization.CultureInfo.InvariantCulture); PlasticSCM plasticscm = new PlasticSCM(); NetReflector.Read(PLASTICSCM_BASIC_XML, plasticscm); string query = string.Format( "cm find revision where branch = 'br:/main' and revno != 'CO' " + "and date between '{0}' and '{1}' ", fromtime, totime); string dateformat = string.Format("--dateformat=\"{0}\" ", PlasticSCM.DATEFORMAT); string format = string.Format("--format=\"{0}\"", PlasticSCM.FORMAT); ProcessInfo info = plasticscm.CreateQueryProcessInfo(from, to); Assert.AreEqual(query + dateformat + format, info.FileName + " " + info.Arguments); }