示例#1
0
        public void Test_HasAfferentRelationships_ReturnsTrue_WhenThereAreIncomingRelationships()
        {
            SoftwareSystem softwareSystem1 = Model.AddSoftwareSystem("System 1", "");
            SoftwareSystem softwareSystem2 = Model.AddSoftwareSystem("System 2", "");

            softwareSystem1.Uses(softwareSystem2, "Uses");

            Assert.True(softwareSystem2.HasAfferentRelationships());
        }
示例#2
0
        public void Test_HasAfferentRelationships_ReturnsFalse_WhenThereAreNoIncomingRelationships()
        {
            SoftwareSystem softwareSystem1 = model.AddSoftwareSystem("System 1", "");
            SoftwareSystem softwareSystem2 = model.AddSoftwareSystem("System 2", "");

            softwareSystem1.Uses(softwareSystem2, "Uses");

            Assert.IsFalse(softwareSystem1.HasAfferentRelationships());
        }