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)); }
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); }