Ejemplo n.º 1
0
        private static ProcessStrategy DumpFileSource(DumpVerb options)
        {
            ProcessStrategy result = null;

            if (!String.IsNullOrEmpty(options.DumpFile))
            {
                result = new DumpFileProcessStrategy(options.DumpFile);
                result.Options = (CommonVerb)options;
            }

            return result;
        }
        public void RunTest_Failed()
        {
            DumpFileProcessStrategy strategy = new DumpFileProcessStrategy(FAKE_FILE_PATH);

            Assert.IsNotNull(strategy.FilePath);
        }
        public void RunTest()
        {
            DumpFileProcessStrategy strategy = new DumpFileProcessStrategy(REAL_FILE_PATH);

            Assert.IsNotNull(strategy.FilePath);
        }