public void TestDiscoverTests() { IEnumerable <string> sources = new List <string>() { AssemblyPrep.Source }; IEnumerable <Guid> actualTests = _tcpClient.DiscoverTests(sources).Select(t => t.TestID); IEnumerable <Guid> expectedTests = AssemblyPrep.TestEngine.DiscoverTests(sources).TestContextLookup.Keys; Assert.AreEqual(expectedTests.Count(), actualTests.Count()); Assert.IsTrue(!expectedTests.Except(actualTests).Any()); }