Exemple #1
0
 public static void AddLinePragmaInitial(this CodeDomHelper codeDomHelper, CodeTypeDeclaration testType, string sourceFile, SpecFlowConfiguration specFlowConfiguration)
 {
     if (specFlowConfiguration.AllowDebugGeneratedFiles)
     {
         return;
     }
     codeDomHelper.BindTypeToSourceFile(testType, Path.GetFileName(sourceFile));
 }
        private void AddLinePragmaInitial(CodeTypeDeclaration testType, string sourceFile)
        {
            if (generatorConfiguration.AllowDebugGeneratedFiles)
            {
                return;
            }

            codeDomHelper.BindTypeToSourceFile(testType, Path.GetFileName(sourceFile));
        }
Exemple #3
0
        private void AddLinePragmaInitial(CodeTypeDeclaration testType, Feature feature)
        {
            if (allowDebugGeneratedFiles)
            {
                return;
            }

            codeDomHelper.BindTypeToSourceFile(testType, Path.GetFileName(feature.SourceFile));
        }
Exemple #4
0
 private void AddLinePragmaInitial(CodeTypeDeclaration testType, string sourceFile)
 {
     _codeDomHelper.BindTypeToSourceFile(testType, Path.GetFileName(sourceFile));
 }