public static void Run (string directory, string filename, bool compare_image_data, IMetadataInvariantValidator invariant, params IMetadataModificationValidator[] modifications) { if (modifications.Length == 0) { ImageTest test = new ImageTest () { ImageFileName = filename, ImageDirectory = directory, TempDirectory = directory, CompareImageData = compare_image_data, InvariantValidator = invariant, ModificationValidator = null }; test.TestImage (); } else { foreach (var modification in modifications) { ImageTest test = new ImageTest () { ImageFileName = filename, ImageDirectory = directory, TempDirectory = directory, CompareImageData = compare_image_data, InvariantValidator = invariant, ModificationValidator = modification }; test.TestImage (); } } }
public static void Run(string directory, string filename, bool compare_image_data, IMetadataInvariantValidator invariant, params IMetadataModificationValidator[] modifications) { if (modifications.Length == 0) { var test = new ImageTest { ImageFileName = filename, ImageDirectory = directory, TempDirectory = directory, CompareImageData = compare_image_data, InvariantValidator = invariant, ModificationValidator = null }; test.TestImage(); } else { foreach (var modification in modifications) { var test = new ImageTest { ImageFileName = filename, ImageDirectory = directory, TempDirectory = directory, CompareImageData = compare_image_data, InvariantValidator = invariant, ModificationValidator = modification }; test.TestImage(); } } }
public static void Run(string filename, bool compare_image_data, IMetadataInvariantValidator invariant, params IMetadataModificationValidator[] modifications) { Run(TestPath.Samples, filename, compare_image_data, invariant, modifications); }
public static void Run(string directory, string filename, IMetadataInvariantValidator invariant, params IMetadataModificationValidator[] modifications) { Run(directory, filename, true, invariant, modifications); }
public static void Run (string filename, bool compare_image_data, IMetadataInvariantValidator invariant, params IMetadataModificationValidator[] modifications) { Run ("samples", filename, compare_image_data, invariant, modifications); }
public static void Run (string directory, string filename, IMetadataInvariantValidator invariant, params IMetadataModificationValidator[] modifications) { Run (directory, filename, true, invariant, modifications); }