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); }
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); }