public void TestExportDate() { DateTime date = DateTime.Parse("12/30/2009 16:00:00"); ExportCommand cmd = new ExportCommand(_root, _connection); cmd.ExportDate = date; cmd.ExportType = ExportType.Date; string mydate = cmd.GetExportDate(date); Assert.AreEqual("-D 30 Dec 2009 16:00:00 -0000", mydate); }
public void TestExportCommandExecute() { DateTime date = DateTime.Now.AddDays(1); _root.Module = "abougie/TestApp"; ExportCommand cmd = new ExportCommand(_root, _connection); cmd.ExportDate = date; cmd.ExportType = ExportType.Date; cmd.Execute(); TestHelper.SaveCommandConversation(cmd, @"c:\_junk\ExportCommandTestApp.xml"); }