C# Class ImageProcessor.UnitTests.AssertionHelpers

Provides helpers for asserting
ファイルを表示 Open project: JimBobSquarePants/ImageProcessor Class Usage Examples

Public Methods

Method 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 method

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. ///
return void

AssertImagesAreIdentical() public static method

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. ///
return void

ToByteArray() public static method

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