コード例 #1
0
        public void FunctionNodeAllocation_Test()
        {
            XDocument xml = XDocument.Load(@"C:\Users\maxei\source\repos\EAST_ADL_METRICS\EAST_ADL_METRICS_Test\TestFiles\FunctionNodeAllocation.eaxml");

            string elementName = "fda";

            Metric expectedMetric = new Metric
            {
                Name     = "FunctionNodeAllocation",
                Category = "Complexity",
                Type     = "Architecture",
                Nested   = false,
                Value    = 2
            };

            Metric actualMetric = architecture.FunctionNodeAllocation(xml, elementName);

            Assert.AreEqual(expectedMetric.Value, actualMetric.Value);
        }