Exemple #1
0
        public void CanSerializeFilterDefinitions()
        {
            string source = @"F:\vs10dev\ApprovaFlowSimpleWorkflowProcessor\TestSuite\TestPlugins";
            string outputSource = @"F:\vs10dev\ApprovaFlowSimpleWorkflowProcessor\TestSuite\TestData\output.json";

            var filterRegistry = new FilterRegistry<Step>();
            filterRegistry.LoadPlugInsFromShare(source);
            string json = filterRegistry.SerializeFilterDefinitions();

            Assert.AreEqual(7, filterRegistry.GetFilterCount());

            Assert.IsTrue(json.Length > 0);
            WriteFile(json, outputSource);
        }