Esempio n. 1
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;
        }
Esempio n. 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));
        }
Esempio n. 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);
        }
Esempio n. 4
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);
 }