Skip to content

Commit

Permalink
Add tests to demonstrate bug
Browse files Browse the repository at this point in the history
  • Loading branch information
CharliePoole committed Apr 20, 2019
1 parent 1ca910e commit 7192e44
Showing 1 changed file with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,36 @@ public void Run()
CheckTestRunEvents();
}

[Test]
public void RunAfterReload()
{
// Engine issue #609
_runner.Load();
_runner.Reload();
var result = _runner.Run(this, TestFilter.Empty);

Assert.That(result.Name, Is.EqualTo("test-run"));
CheckTestRunResult(result, _testRunData);

CheckThatIdsAreUnique(result);

CheckTestRunEvents();
}

[Test]
public void ExploreAfterReload()
{
// Engine issue #609
_runner.Load();
_runner.Reload();
var result = _runner.Explore(TestFilter.Empty);

Assert.That(result.Name, Is.EqualTo("test-run"));
CheckResult(result, _testRunData);

CheckThatIdsAreUnique(result);
}

#if !NETCOREAPP1_1
[Test]
public void RunAsync()
Expand Down

0 comments on commit 7192e44

Please sign in to comment.