C# Class ImageProcessor.UnitTests.AssertionHelpers

Provides helpers for asserting
Afficher le fichier Open project: JimBobSquarePants/ImageProcessor Class Usage Examples

Méthodes publiques

Méthode Description
AssertImagesAreDifferent ( Image expected, Image tested, string because ) : void

Asserts that two images are different

AssertImagesAreIdentical ( Image expected, Image tested, string because ) : void

Asserts that two images are identical

ToByteArray ( Image imageIn ) : byte[]

Converts an image to a byte array

Method Details

AssertImagesAreDifferent() public static méthode

Asserts that two images are different
public static AssertImagesAreDifferent ( Image expected, Image tested, string because ) : void
expected System.Drawing.Image /// The not-expected result ///
tested System.Drawing.Image /// The tested image ///
because string /// The because message. ///
Résultat void

AssertImagesAreIdentical() public static méthode

Asserts that two images are identical
public static AssertImagesAreIdentical ( Image expected, Image tested, string because ) : void
expected System.Drawing.Image /// The expected result ///
tested System.Drawing.Image /// The tested image ///
because string /// The because message. ///
Résultat void

ToByteArray() public static méthode

Converts an image to a byte array
public static ToByteArray ( Image imageIn ) : byte[]
imageIn System.Drawing.Image The image to convert
Résultat byte[]