1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-11-30 01:50:10 +00:00

Minor regression test fix

This commit is contained in:
Andy McFadden 2022-07-31 09:41:37 -07:00
parent c1a8ce519e
commit 5d7503686c

View File

@ -31,6 +31,7 @@ namespace SourceGen.Tests.WpfGui {
/// Source generation test runner. /// Source generation test runner.
/// </summary> /// </summary>
public partial class GenTestRunner : Window, INotifyPropertyChanged { public partial class GenTestRunner : Window, INotifyPropertyChanged {
// Full set of results from last run.
private List<GenTest.GenTestResults> mLastResults; private List<GenTest.GenTestResults> mLastResults;
private BackgroundWorker mWorker; private BackgroundWorker mWorker;
@ -208,7 +209,7 @@ namespace SourceGen.Tests.WpfGui {
outputTextBox.Text = string.Empty; outputTextBox.Text = string.Empty;
return; return;
} }
if (mLastResults == null && mLastResults.Count <= sel) { if (mLastResults == null || mLastResults.Count <= sel) {
Debug.WriteLine("SelIndexChanged to " + sel + ", not available"); Debug.WriteLine("SelIndexChanged to " + sel + ", not available");
return; return;
} }