浏览代码

Fixes #2287. AssertDriverColorsAre is reporting wrong colors information.

BDisp 2 年之前
父节点
当前提交
13c7e59116
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      UnitTests/TestHelpers.cs

+ 1 - 1
UnitTests/TestHelpers.cs

@@ -260,7 +260,7 @@ class TestHelpers {
 				var userExpected = line [c];
 
 				if (colorUsed != userExpected) {
-					throw new Exception ($"Colors used did not match expected at row {r} and col {c} (indexes start at 0).  Color index used was {DescribeColor (colorUsed)} but test expected {DescribeColor (userExpected)} (these are indexes into the expectedColors array)");
+					throw new Exception ($"Colors used did not match expected at row {r} and col {c} (indexes start at 0).  Color index used was {colorUsed} ({DescribeColor (val)}) but test expected {userExpected} ({DescribeColor (expectedColors [int.Parse (userExpected.ToString ())].Value)}) (these are indexes into the expectedColors array)");
 				}
 			}