public override string GetClassCodeForProcessingRun() { var hostProp = new CodePropertyReferenceExpression(new CodeThisReferenceExpression(), "Host"); return(TemplatingEngine.GenerateIndentedClassCode( languageProvider, CreateIsTrueMethod(hostProp), CreateTagsProperty(hostProp) )); }
public void FieldAndPropertyGenerated() { var provider = CodeDomProvider.CreateProvider("C#"); var field = CreateBoolField(); var property = CreateBoolProperty(); string output = TemplatingEngine.GenerateIndentedClassCode(provider, field, property); output = FixOutput(output); string expectedOutput = FixOutput(MethodAndFieldGeneratedOutput); Assert.AreEqual(expectedOutput, output); }
public override string GetClassCodeForProcessingRun() { var code = TemplatingEngine.GenerateIndentedClassCode(provider, members); return(code); }
public override string GetClassCodeForProcessingRun() { return(TemplatingEngine.GenerateIndentedClassCode(this.provider, this.members)); }
public override string GetClassCodeForProcessingRun() { using (CodeDomProvider provider = Settings.GetCodeDomProvider()) { return(TemplatingEngine.GenerateIndentedClassCode(provider, members)); } }