C# Class DrawingTestHelper.DrawingTest

Summary description for DrawingTest.
Inheritance: IDisposable
Afficher le fichier Open project: kumpera/mono Class Usage Examples

Protected Properties

Свойство Type Description
ExpectedResults ExpectedResultsHash
_bitmap System.Drawing.Bitmap
_ownerClass string
_specialTolerance System.Collections.Hashtable
cache Cache

Méthodes publiques

Méthode 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

Méthodes protégées

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

Private Methods

Méthode 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 méthode

public static AssertAlmostEqual ( PointF expected, PointF actual ) : void
expected System.Drawing.PointF
actual System.Drawing.PointF
Résultat void

AssertAlmostEqual() public static méthode

public static AssertAlmostEqual ( float expected, float actual ) : void
expected float
actual float
Résultat void

AssertAlmostEqual() public static méthode

public static AssertAlmostEqual ( float expected, float actual, float tolerance ) : void
expected float
actual float
tolerance float
Résultat void

AssertCompare() public méthode

public AssertCompare ( ) : void
Résultat void

AssertCompare() public méthode

public AssertCompare ( double tolerance ) : void
tolerance double
Résultat void

CalculateNorm() public static méthode

public static CalculateNorm ( Bitmap bitmap ) : double
bitmap System.Drawing.Bitmap
Résultat double

CalculateSHA1() abstract public méthode

abstract public CalculateSHA1 ( ) : string
Résultat string

Compare() public méthode

public Compare ( ) : bool
Résultat bool

Compare() public méthode

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

CompareToExpected() public méthode

public CompareToExpected ( ) : double
Résultat double

Create() public static méthode

public static Create ( int width, int height ) : DrawingTest
width int
height int
Résultat DrawingTest

Create() public static méthode

public static Create ( int width, int height, string ownerClass ) : DrawingTest
width int
height int
ownerClass string
Résultat DrawingTest

CreateForm() protected abstract méthode

protected abstract CreateForm ( string title ) : IMyForm
title string
Résultat IMyForm

DetermineCallingFunction() protected abstract méthode

protected abstract DetermineCallingFunction ( ) : string
Résultat string

Dispose() public méthode

public Dispose ( ) : void
Résultat void

DrawingTest() protected méthode

protected DrawingTest ( ) : System
Résultat java.lang.System

GetExpectedNorm() protected abstract méthode

protected abstract GetExpectedNorm ( double myNorm ) : double
myNorm double
Résultat double

GetNorm() public méthode

public GetNorm ( ) : double
Résultat double

GetReferenceImage() protected abstract méthode

protected abstract GetReferenceImage ( string testName ) : Bitmap
testName string
Résultat System.Drawing.Bitmap

GetSpecialTolerance() protected méthode

protected GetSpecialTolerance ( string testName ) : double
testName string
Résultat double

PDCompare() public méthode

public PDCompare ( ) : bool
Résultat bool

PDCompare() public méthode

public PDCompare ( double tolerance ) : bool
tolerance double
Résultat bool

Show() public méthode

public Show ( ) : void
Résultat void

Property Details

ExpectedResults protected_oe static_oe property

protected static ExpectedResultsHash,DrawingTestHelper ExpectedResults
Résultat ExpectedResultsHash

_bitmap protected_oe property

protected Bitmap,System.Drawing _bitmap
Résultat System.Drawing.Bitmap

_ownerClass protected_oe property

protected string _ownerClass
Résultat string

_specialTolerance protected_oe property

protected Hashtable,System.Collections _specialTolerance
Résultat System.Collections.Hashtable

cache protected_oe static_oe property

protected static Cache,DrawingTestHelper cache
Résultat Cache