I figured as much. Until then, and for verification, I'll keep the guard clauses in :).
Good news. Just got a successful run on my deployment machine (this is a first!).
So, it definitely looks like that comparing images with different dimensions is the issue.
Code I used to guard for reference:
Good news. Just got a successful run on my deployment machine (this is a first!).
So, it definitely looks like that comparing images with different dimensions is the issue.
Code I used to guard for reference:
/// <summary>
/// Compare the actual to the expected with resulting comparison image and error info
/// </summary>
public void Compare()
{
if (ImageDimensionsEqual = CheckImageDimensions())
{
Error = Actual.Image.Compare(Expected.Image);
Actual.Image.Compare(Expected.Image, ErrorMetric.Fuzz, Comparison.Image);
}
}
private bool CheckImageDimensions()
{
return (Actual.Image.Width == Expected.Image.Width
&& Actual.Image.Height == Expected.Image.Height);
}