Asserts that all the pixels in the supplied image are of the supplied colour.

Namespace:  NUnit.Extensions
Assembly:  NUnit.Extensions (in NUnit.Extensions.dll) Version: 0.1.3593.29695

Syntax

C#
public static void IsSingleColour(
	Bitmap bitmap,
	Color colour
)
Visual Basic (Declaration)
Public Shared Sub IsSingleColour ( _
	bitmap As Bitmap, _
	colour As Color _
)
Visual C++
public:
static void IsSingleColour(
	Bitmap^ bitmap, 
	Color colour
)

Parameters

bitmap
Type: System.Drawing..::.Bitmap
The image to check.
colour
Type: System.Drawing..::.Color
The colour that the pixels in the supplied image are expected to be.

See Also