public void a_node_can_be_added() { var g = new AffectedGraph(); g.AddNode(new AffectedGraphNode("foo", false, false, false, "name", "bar::foo", "assembly", "type", new List <TestDescriptor>(), false, false, 0)); Assert.AreEqual(1, g.AllNodes().Count()); Assert.AreEqual("foo", g.AllNodes().First().DisplayName); Assert.AreEqual("bar::foo", g.AllNodes().First().FullName); Assert.IsNotNull(g.GetNode("bar::foo")); }
private void EnrichGraphWithProfilerInformation(string name, AffectedGraph graph) { var profilerOff = _configuration.AllSettings("mm-ProfilerSetup") == "DONTRUN"; var items = _profilerData.GetTestsFor(name); foreach (var entry in items) { var node = graph.GetNode(entry); if (node != null) { node.MarkAsProfiled(); } } }