Asserts that the supplied colours have similar R, G and B values,
within the supplied tolerance.
Namespace:
NUnit.ExtensionsAssembly: NUnit.Extensions (in NUnit.Extensions.dll) Version: 0.1.3593.29695
Syntax
| C# |
|---|
public static void AreEqual( Color expected, Color actual, int tolerance, string info ) |
| Visual Basic (Declaration) |
|---|
Public Shared Sub AreEqual ( _ expected As Color, _ actual As Color, _ tolerance As Integer, _ info As String _ ) |
| Visual C++ |
|---|
public: static void AreEqual( Color expected, Color actual, int tolerance, String^ info ) |
Parameters
- expected
- Type: System.Drawing..::.Color
The expected colour
- actual
- Type: System.Drawing..::.Color
The actual colour
- tolerance
- Type: System..::.Int32
The allowable difference between R, G and B values.
- info
- Type: System..::.String
Any additional information to be displayed if an assert fails.