Exemple #1
0
        public void ResolveDirectiveProcessorWithNull()
        {
            // fields
            string path     = Directory.GetCurrentDirectory();
            string fileName = null;

            // Create the Host
            ITextTemplatingEngineHost host = new TemplateHost(path, new Dictionary <string, PropertyData>());
            Type result = host.ResolveDirectiveProcessor(fileName);
        }
Exemple #2
0
        public void ResolveDirectiveProcessorWrongName()
        {
            // fields
            string path          = Directory.GetCurrentDirectory();
            string processorName = "PropertyProcessorWrongName";

            // Create the Host
            ITextTemplatingEngineHost host = new TemplateHost(path, new Dictionary <string, PropertyData>());

            Type result = host.ResolveDirectiveProcessor(processorName);

            Assert.AreEqual(null, result);
        }