コード例 #1
0
        DummyHost CreateDummyHostForControlBlockAfterIncludedTemplateWithClassFeatureBlockTest()
        {
            DummyHost host = new DummyHost();

            string includeTemplateFileName = @"d:\test\IncludedFile.tt";

            host.Locations.Add(includeTemplateFileName, includeTemplateFileName);
            host.Contents.Add(includeTemplateFileName, IncludedTemplate_ControlBlockAfterIncludedTemplate.NormalizeNewlines());

            return(host);
        }
コード例 #2
0
        static DummyHost CreateDummyHostForControlBlockAfterIncludedTemplateWithClassFeatureBlockTest()
        {
            var host = new DummyHost();

            string includeTemplateRequestedFileName = @"Some\Requested\Path\IncludedFile.tt";

            if (System.IO.Path.DirectorySeparatorChar == '/')
            {
                includeTemplateRequestedFileName = includeTemplateRequestedFileName.Replace('\\', '/');
            }

            string includeTemplateResolvedFileName = @"Some\Resolved\Path\IncludedFile.tt";

            host.Locations.Add(includeTemplateRequestedFileName, includeTemplateResolvedFileName);
            host.Contents.Add(includeTemplateResolvedFileName, IncludedTemplate_ControlBlockAfterIncludedTemplate.NormalizeNewlines());

            return(host);
        }