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(
	Image image,
	Color colour
)
Visual Basic (Declaration)
Public Shared Sub IsSingleColour ( _
	image As Image, _
	colour As Color _
)
Visual C++
public:
static void IsSingleColour(
	Image^ image, 
	Color colour
)

Parameters

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

See Also