예제 #1
0
        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);
        }
예제 #2
0
        public void CreateEssenticalFolderTest()
        {
            WorkFlow flow = new WorkFlow();

            flow.GetParameters(CreateArgs());
            flow.ValidateEssentialParameters();
            bool isSuccess = flow.CreateEssenticalFolder();

            Assert.IsTrue(isSuccess);
        }
예제 #3
0
        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);
        }
예제 #4
0
        public void CollectWaitingFilesTest()
        {
            WorkFlow flow = new WorkFlow();

            flow.GetParameters(CreateArgs());
            flow.ValidateEssentialParameters();
            List <DetailFileInfo> infos = flow.GetWaitingFiles(flow.EssentialParameters.Input);

            Assert.IsNotNull(infos);
        }