public void StartPage_IsntAllowed_BelowStartPage() { ItemDefinition startPageDef = definitions.GetDefinition(typeof(DefinitionStartPage)); var childDefinitions = definitions.GetAllowedChildren(new DefinitionStartPage(), string.Empty, user); EnumerableAssert.DoesntContain(childDefinitions, startPageDef, "One of the start page's child definitions was the start page itself."); }
public void OneChildIsAllowed() { var allowed = definitions.GetAllowedChildren(new RestrictsChildWithCardinality()).Single(); Assert.That(allowed.ItemType, Is.EqualTo(typeof(ChildWithCardinality))); }