public void IsDirectiveSupported() { // fields string path = Directory.GetCurrentDirectory(); string directiveName = "property"; MockTemplateHost mockHost = new MockTemplateHost(path); CompilerErrorCollection errors = new CompilerErrorCollection(); // Create the PropertiesDirectiveProcessor PropertiesDirectiveProcessor pdp = new PropertiesDirectiveProcessor(); pdp.Initialize(mockHost); Assert.IsTrue(pdp.IsDirectiveSupported(directiveName)); }
public void IsDirectiveSupportedWithNull() { // fields string path = Directory.GetCurrentDirectory(); string directiveName = null; MockTemplateHost mockHost = new MockTemplateHost(path); CompilerErrorCollection errors = new CompilerErrorCollection(); // Create the PropertiesDirectiveProcessor PropertiesDirectiveProcessor pdp = new PropertiesDirectiveProcessor(); pdp.Initialize(mockHost); bool result = pdp.IsDirectiveSupported(directiveName); }