C# Class DrawingTestHelper.DrawingTest

Summary description for DrawingTest.
Inheritance: IDisposable
Show file Open project: kumpera/mono Class Usage Examples

Protected Properties

Property Type Description
ExpectedResults ExpectedResultsHash
_bitmap System.Drawing.Bitmap
_ownerClass string
_specialTolerance System.Collections.Hashtable
cache Cache

Public Methods

Method Description
AssertAlmostEqual ( PointF expected, PointF actual ) : void
AssertAlmostEqual ( float expected, float actual ) : void
AssertAlmostEqual ( float expected, float actual, float tolerance ) : void
AssertCompare ( ) : void
AssertCompare ( double tolerance ) : void
CalculateNorm ( Bitmap bitmap ) : double
CalculateSHA1 ( ) : string
Compare ( ) : bool
Compare ( double tolerance ) : bool

Checks that the given bitmap norm is similar to expected

CompareToExpected ( ) : double
Create ( int width, int height ) : DrawingTest
Create ( int width, int height, string ownerClass ) : DrawingTest
Dispose ( ) : void
GetNorm ( ) : double
PDCompare ( ) : bool
PDCompare ( double tolerance ) : bool
Show ( ) : void

Protected Methods

Method Description
CreateForm ( string title ) : IMyForm
DetermineCallingFunction ( ) : string
DrawingTest ( ) : System
GetExpectedNorm ( double myNorm ) : double
GetReferenceImage ( string testName ) : Bitmap
GetSpecialTolerance ( string testName ) : double

Private Methods

Method Description
AssertAlmostEqual ( float expected, float actual, float tolerance, string message ) : void
CheckCounter ( ) : void
CompareToExpectedInternal ( ) : double
GetImageFFTArray ( Bitmap bitmap ) : Exocortex.DSP.ComplexF[]
Init ( Bitmap bitmap ) : void
Init ( int width, int height ) : void

Method Details

AssertAlmostEqual() public static method

public static AssertAlmostEqual ( PointF expected, PointF actual ) : void
expected System.Drawing.PointF
actual System.Drawing.PointF
return void

AssertAlmostEqual() public static method

public static AssertAlmostEqual ( float expected, float actual ) : void
expected float
actual float
return void

AssertAlmostEqual() public static method

public static AssertAlmostEqual ( float expected, float actual, float tolerance ) : void
expected float
actual float
tolerance float
return void

AssertCompare() public method

public AssertCompare ( ) : void
return void

AssertCompare() public method

public AssertCompare ( double tolerance ) : void
tolerance double
return void

CalculateNorm() public static method

public static CalculateNorm ( Bitmap bitmap ) : double
bitmap System.Drawing.Bitmap
return double

CalculateSHA1() abstract public method

abstract public CalculateSHA1 ( ) : string
return string

Compare() public method

public Compare ( ) : bool
return bool

Compare() public method

Checks that the given bitmap norm is similar to expected
public Compare ( double tolerance ) : bool
tolerance double tolerance in percents (0..100)
return bool

CompareToExpected() public method

public CompareToExpected ( ) : double
return double

Create() public static method

public static Create ( int width, int height ) : DrawingTest
width int
height int
return DrawingTest

Create() public static method

public static Create ( int width, int height, string ownerClass ) : DrawingTest
width int
height int
ownerClass string
return DrawingTest

CreateForm() protected abstract method

protected abstract CreateForm ( string title ) : IMyForm
title string
return IMyForm

DetermineCallingFunction() protected abstract method

protected abstract DetermineCallingFunction ( ) : string
return string

Dispose() public method

public Dispose ( ) : void
return void

DrawingTest() protected method

protected DrawingTest ( ) : System
return java.lang.System

GetExpectedNorm() protected abstract method

protected abstract GetExpectedNorm ( double myNorm ) : double
myNorm double
return double

GetNorm() public method

public GetNorm ( ) : double
return double

GetReferenceImage() protected abstract method

protected abstract GetReferenceImage ( string testName ) : Bitmap
testName string
return System.Drawing.Bitmap

GetSpecialTolerance() protected method

protected GetSpecialTolerance ( string testName ) : double
testName string
return double

PDCompare() public method

public PDCompare ( ) : bool
return bool

PDCompare() public method

public PDCompare ( double tolerance ) : bool
tolerance double
return bool

Show() public method

public Show ( ) : void
return void

Property Details

ExpectedResults protected static property

protected static ExpectedResultsHash,DrawingTestHelper ExpectedResults
return ExpectedResultsHash

_bitmap protected property

protected Bitmap,System.Drawing _bitmap
return System.Drawing.Bitmap

_ownerClass protected property

protected string _ownerClass
return string

_specialTolerance protected property

protected Hashtable,System.Collections _specialTolerance
return System.Collections.Hashtable

cache protected static property

protected static Cache,DrawingTestHelper cache
return Cache