Skip to content

Commit

Permalink
GUI clears previous results
Browse files Browse the repository at this point in the history
  • Loading branch information
rubberduck203 committed Feb 22, 2015
1 parent 45b6f17 commit 51058c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public void SynchronizeEngineWithIDE()

public void RunTests(IEnumerable<TestMethod> tests)
{
//Control.ClearResults();
Control.ClearResults(); //if it doesn't work, get rid of this
Control.SetPlayList(tests);
Control.ClearProgress();
_testEngine.Run(tests);
Expand Down
3 changes: 2 additions & 1 deletion RetailCoder.VBE/UI/UnitTesting/TestExplorerWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ private void RunSelectedTestMenuItemClicked(object sender, EventArgs e)
.Cast<DataGridViewRow>()
.Select(row => row.DataBoundItem as TestExplorerItem)
.Select(item => item.GetTestMethod())
.Contains(test.GetTestMethod()));
.Contains(test.GetTestMethod()))
.ToList(); //ToList should force immediate execution so clearing the gui won't cause us to lose the selection.

handler(this, new SelectedTestEventArgs(selection));
}
Expand Down

0 comments on commit 51058c9

Please sign in to comment.