public void GetParametersTest() { //Assert.Fail(); string[] args = { "/i c:\\input file\\123 456\\789 0", "/o output file", "/s test t.xml", "/l log log.log" }; WorkFlow flow = new WorkFlow(); List <Parameter> actual = flow.GetParameters(args); Assert.AreEqual(actual.Count, 4); }
public void CreateEssenticalFolderTest() { WorkFlow flow = new WorkFlow(); flow.GetParameters(CreateArgs()); flow.ValidateEssentialParameters(); bool isSuccess = flow.CreateEssenticalFolder(); Assert.IsTrue(isSuccess); }
public void GetStrategyFilesTest() { WorkFlow flow = new WorkFlow(); flow.GetParameters(CreateArgs()); flow.ValidateEssentialParameters(); List <FileInfo> infos = flow.GetStrategyFiles(flow.EssentialParameters.Strategy); Assert.IsTrue(infos.Count > 0); }
public void CollectWaitingFilesTest() { WorkFlow flow = new WorkFlow(); flow.GetParameters(CreateArgs()); flow.ValidateEssentialParameters(); List <DetailFileInfo> infos = flow.GetWaitingFiles(flow.EssentialParameters.Input); Assert.IsNotNull(infos); }