Skip to content

Commit

Permalink
commtting fixes for tests microsoft#958
Browse files Browse the repository at this point in the history
  • Loading branch information
DineshChirnanchu committed Sep 6, 2019
1 parent 0aab6d0 commit 3d2ceeb
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -48,7 +48,6 @@ public void TestCleanup()
public void DiscoverTestsShouldCallInitialize()
{
var manualResetEvent = new ManualResetEvent(false);
var mockTestDiscoveryEventHandler = new Mock<ITestDiscoveryEventsHandler2>();
this.mockDiscoveryManager.Setup(o => o.Initialize(Enumerable.Empty<string>(), null)).Callback(
() => manualResetEvent.Set());

Expand All @@ -62,8 +61,7 @@ public void DiscoverTestsShouldCallInitialize()
public void DiscoverTestsShouldUpdateTestPluginCacheWithExtensionsReturnByTestHost()
{
var manualResetEvent = new ManualResetEvent(false);
var mockTestDiscoveryEventHandler = new Mock<ITestDiscoveryEventsHandler2>();
this.mockDiscoveryManager.Setup(o => o.Initialize(Enumerable.Empty<string>(), mockTestDiscoveryEventHandler.Object)).Callback(
this.mockDiscoveryManager.Setup(o => o.Initialize(Enumerable.Empty<string>(), null)).Callback(
() => manualResetEvent.Set());

this.mockTestHostManager.Setup(o => o.GetTestPlatformExtensions(It.IsAny<IEnumerable<string>>(), It.IsAny<IEnumerable<string>>())).Returns(new List<string> { "C:\\DiscoveryDummy.dll" });
Expand Down

0 comments on commit 3d2ceeb

Please sign in to comment.