Exemplo n.º 1
0
		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 ();
				}
			}
		}
Exemplo n.º 2
0
 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();
         }
     }
 }
Exemplo n.º 3
0
 public static void Run(string filename, bool compare_image_data, IMetadataInvariantValidator invariant, params IMetadataModificationValidator[] modifications)
 {
     Run(TestPath.Samples, filename, compare_image_data, invariant, modifications);
 }
Exemplo n.º 4
0
 public static void Run(string directory, string filename, IMetadataInvariantValidator invariant, params IMetadataModificationValidator[] modifications)
 {
     Run(directory, filename, true, invariant, modifications);
 }
Exemplo n.º 5
0
		public static void Run (string filename, bool compare_image_data, IMetadataInvariantValidator invariant, params IMetadataModificationValidator[] modifications)
		{
			Run ("samples", filename, compare_image_data, invariant, modifications);
		}
Exemplo n.º 6
0
		public static void Run (string directory, string filename, IMetadataInvariantValidator invariant, params IMetadataModificationValidator[] modifications)
		{
			Run (directory, filename, true, invariant, modifications);
		}