diff --git a/UnitTests/TestHelpers.cs b/UnitTests/TestHelpers.cs
index ac13d56c0f..b76da0a35f 100644
--- a/UnitTests/TestHelpers.cs
+++ b/UnitTests/TestHelpers.cs
@@ -37,9 +37,9 @@ public class AutoInitShutdownAttribute : Xunit.Sdk.BeforeAfterTestAttribute {
/// Only valid if is true.
/// Only valid if == and is true.
public AutoInitShutdownAttribute (bool autoInit = true, bool autoShutdown = true,
- Type consoleDriverType = null,
- bool useFakeClipboard = false,
- bool fakeClipboardAlwaysThrowsNotSupportedException = false,
+ Type consoleDriverType = null,
+ bool useFakeClipboard = false,
+ bool fakeClipboardAlwaysThrowsNotSupportedException = false,
bool fakeClipboardIsSupportedAlwaysTrue = false)
{
//Assert.True (autoInit == false && consoleDriverType == null);
@@ -54,7 +54,7 @@ public AutoInitShutdownAttribute (bool autoInit = true, bool autoShutdown = true
static bool _init = false;
bool AutoInit { get; }
- bool AutoShutdown { get; }
+ bool AutoShutdown { get; }
Type DriverType;
public override void Before (MethodInfo methodUnderTest)
@@ -251,7 +251,7 @@ public static void AssertDriverColorsAre (string expectedLook, Attribute [] expe
var match = expectedColors.Where (e => e.Value == val).ToList ();
if (match.Count == 0) {
- throw new Exception ($"Unexpected color {DescribeColor (val)} was used at row {r} and col {c} (indexes start at 0). Color value was {val} (expected colors were {string.Join (",", expectedColors.Select (c => c.Value))})");
+ throw new Exception ($"Unexpected color {DescribeColor (val)} was used at row {r} and col {c} (indexes start at 0). Color value was {val} (expected colors were {string.Join (",", expectedColors.Select (c => DescribeColor (c.Value)))})");
} else if (match.Count > 1) {
throw new ArgumentException ($"Bad value for expectedColors, {match.Count} Attributes had the same Value");
}
@@ -260,7 +260,7 @@ public static void AssertDriverColorsAre (string expectedLook, Attribute [] expe
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)");
}
}