public static VerifyActualValues ( string elementName, string expectedValues, string actualValue, ITestSite site ) : void | ||
elementName | string | The name of the element. |
expectedValues | string | The array of all expected values. |
actualValue | string | The actual value of one element. |
site | ITestSite | An instance of interface ITestSite which provides logging, assertions, and adapters for test code onto its execution context. |
return | void |
public static void VerifyActualValues(string elementName, string[] expectedValues, string actualValue, ITestSite site)
{
if (!expectedValues.Contains(actualValue))
{
site.Assert.Fail("The value of '{0}' element should be one of the following values: {1}. Actually it is: {2}.", elementName, string.Join(", ", expectedValues), actualValue);
}
}