public void IssueHierarchy() { Assert.AreEqual(5, _report.Issue.Count()); Assert.AreEqual(2, _report.AtLevel(0).Count()); Assert.AreEqual(1, _report.AtLevel(1).Count()); Assert.AreEqual(2, _report.AtLevel(2).Count()); CollectionAssert.AreEquivalent(new int[] { 0, 1, 2, 2, 0 }, _report.Issue.Select(i => i.GetHierarchyLevel()).ToArray()); }