public void ShouldOnlyAllowElementsWithTheProperStereotype()
        {
            RepositoryItemBuilder element1       = AnElement.WithStereotype(elementStereotype);
            RepositoryItemBuilder element2       = AnElement.WithStereotype("other than " + elementStereotype);
            RepositoryItemBuilder elementLibrary = DefaultItem.WithChild(element1).WithChild(element2);

            ExpectConstraintViolation(element2);
            Validate(elementLibrary);
        }
 private static RepositoryItemBuilder AnElementWithTheExpectedStereotype()
 {
     return(AnElement.WithStereotype(ExpectedStereotype));
 }
 public void ShouldOnlyMatchElementsWithTheProperStereotype()
 {
     AssertValidatorDoesNotMatch(AnElement.WithStereotype("other than " + ElementStereotype));
 }