public void MarketGroups_All_ReturnsMoreThanRoots() { var roots = MarketGroups.GetRootMarketGroups().ToList(); var mgs = MarketGroups.GetMarketGroups().ToList(); mgs.Count.Should().BeGreaterThan(roots.Count); }
public void MarketGroups_RootsHaveNoParents() { var mgs = MarketGroups.GetRootMarketGroups().ToList(); var parentedMgs = mgs.Where(mg => MarketGroups.GetParent(mg) != null).ToList(); mgs.Should().HaveCountGreaterThan(0); parentedMgs.Should().HaveCount(0); }