Exemple #1
0
        public void ShouldNotAllowAnInvalidParent()
        {
            RepositoryItemBuilder bLibrary = DefaultItem.WithParent(APackage.WithStereotype("SOME-OTHER-KIND-OF-PACKAGE").WithParent(APackage));

            VerifyConstraintViolations(bLibrary, bLibrary);
        }
Exemple #2
0
 public void ShouldAllowAModelAsParent()
 {
     VerifyConstraintViolations(DefaultItem.WithParent(AModel));
 }
Exemple #3
0
 public void ShouldAllowABInformationVAsParent()
 {
     VerifyConstraintViolations(DefaultItem.WithParent(APackage.WithStereotype(Stereotype.bInformationV).WithParent(APackage)));
 }
Exemple #4
0
 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);
        }