public NUnitResults(XmlNode results) { FullTopNode = results; // Currently, this will always be the case but it might change TopNode = results.Name == "test-run" ? results.FirstChild : results; // ReSharper disable once StringLiteralTypo IsRunnable = TopNode.GetAttribute("runstate") == "Runnable"; }