public bool? IsUpToDatePreliminary(FeatureFileInput featureFileInput, string generatedTestFullPath, UpToDateCheckingMethod upToDateCheckingMethod)
        {
            bool byUpdateTimeCheckResult = IsUpToDateByModificationTimeAndGeneratorVersion(featureFileInput, generatedTestFullPath);
            if (upToDateCheckingMethod == UpToDateCheckingMethod.ModificationTimeAndGeneratorVersion)
                return byUpdateTimeCheckResult;

            if (byUpdateTimeCheckResult == false)
                return false;

            return null;
        }
Exemple #2
0
        public bool IsUpToDate(FeatureFileInput featureFileInput, string generatedTestFullPath, string generatedTestContent, UpToDateCheckingMethod upToDateCheckingMethod)
        {
            string existingFileContent = featureFileInput.GetGeneratedTestContent(generatedTestFullPath);

            return(existingFileContent != null && existingFileContent.Equals(generatedTestContent, StringComparison.InvariantCulture));
        }
Exemple #3
0
        public bool?IsUpToDatePreliminary(FeatureFileInput featureFileInput, string generatedTestFullPath, UpToDateCheckingMethod upToDateCheckingMethod)
        {
            bool byUpdateTimeCheckResult = IsUpToDateByModificationTimeAndGeneratorVersion(featureFileInput, generatedTestFullPath);

            if (upToDateCheckingMethod == UpToDateCheckingMethod.ModificationTimeAndGeneratorVersion)
            {
                return(byUpdateTimeCheckResult);
            }

            if (byUpdateTimeCheckResult == false)
            {
                return(false);
            }

            return(null);
        }
 public bool IsUpToDate(FeatureFileInput featureFileInput, string generatedTestFullPath, string generatedTestContent, UpToDateCheckingMethod upToDateCheckingMethod)
 {
     string existingFileContent = featureFileInput.GetGeneratedTestContent(generatedTestFullPath);
     return existingFileContent != null && existingFileContent.Equals(generatedTestContent, StringComparison.InvariantCulture);
 }