Пример #1
0
        public void MustRead_ClassAd_NotDepends_Bd()
        {
            IXMIReader reader = GetReaderStarUML_LoadedWith_RelationshipsBasic();
            Model      model  = reader.GetModel();
            Class      ClassA = model.Classes.Single(c => c.Name == "Ad");
            Class      ClassB = model.Classes.Single(c => c.Name == "Bd");

            Assert.DoesNotContain(ClassA, ClassB.ItDepends);
        }
Пример #2
0
        public void MustRead_ClassBd_Releases_Ad()
        {
            IXMIReader reader = GetReaderStarUML_LoadedWith_RelationshipsBasic();
            Model      model  = reader.GetModel();
            Class      ClassA = model.Classes.Single(c => c.Name == "Ad");
            Class      ClassB = model.Classes.Single(c => c.Name == "Bd");

            Assert.Contains(ClassA, ClassB.Releases);
        }
Пример #3
0
        public void MustRead_ClassBa_Depends_Aa()
        {
            IXMIReader reader = GetReaderStarUML_LoadedWith_RelationshipsBasic();
            Model      model  = reader.GetModel();
            Class      ClassB = model.Classes.Single(c => c.Name == "Ba");
            Class      ClassA = model.Classes.Single(c => c.Name == "Aa");

            Assert.Contains(ClassA, ClassB.ItDepends);
        }