コード例 #1
0
        public void GivenModelIsFilledWhenGetWeightWithSelfThenReturnsZero()
        {
            DsmRelationModel model = new DsmRelationModel(_elementsDataModel);

            CreateElementRelations(model);
            Assert.AreEqual(11, model.GetExportedRelationCount());

            foreach (IDsmElement element in _elementsDataModel.GetElements())
            {
                Assert.AreEqual(0, model.GetDependencyWeight(element.Id, element.Id));
            }
        }