public void ShouldNotAllowAnInvalidParent() { RepositoryItemBuilder bLibrary = DefaultItem.WithParent(APackage.WithStereotype("SOME-OTHER-KIND-OF-PACKAGE").WithParent(APackage)); VerifyConstraintViolations(bLibrary, bLibrary); }
public void ShouldAllowAModelAsParent() { VerifyConstraintViolations(DefaultItem.WithParent(AModel)); }
public void ShouldAllowABInformationVAsParent() { VerifyConstraintViolations(DefaultItem.WithParent(APackage.WithStereotype(Stereotype.bInformationV).WithParent(APackage))); }
public void ShouldAllowABLibraryAsParent() { VerifyConstraintViolations(DefaultItem.WithParent(APackage.WithStereotype(Stereotype.bLibrary).WithParent(APackage))); }
public void ShouldOnlyAllowABLibraryAsParent() { RepositoryItemBuilder elementLibrary = DefaultItem.WithParent(APackage.WithStereotype("other than bLibrary")); VerifyConstraintViolations(elementLibrary, elementLibrary); }