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

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