public void AddTest(TestMeta test, string id) { string key = string.Format("{0}|{1}|{2}", test.Fixture.Assembly.UniqueName, test.Fixture.UniqueName, test.UniqueName); lock (ExpectedTests) { if (!ExpectedTests.ContainsKey(key)) { ExpectedTests.Add(key, new List <PlatformResult>()); } ExpectedTests[key].Add(new PlatformResult(id) { MissingTest = test }); } }
public void ReceivedTests(string id) { lock (WaitingForPlatforms) { WaitingForPlatforms.Remove(id); if (!WaitingForPlatforms.Any() && !Go) { foreach (var expectedTest in ExpectedTests.ToDictionary(k => k.Key, v => v.Value)) { var remove = !expectedTest.Value.All(pr => TestFilter.Value.ShouldRun(pr.MissingTest)); if (remove) { ExpectedTests.Remove(expectedTest.Key); } } PrintResults.PrintStart(); Go = true; } } }