Exemplo n.º 1
0
        public void Connectors_arch_Test()
        {
            XDocument xml = XDocument.Load(@"C:\Users\maxei\source\repos\EAST_ADL_METRICS\EAST_ADL_METRICS_Test\TestFiles\Connectors_arch.eaxml");

            string elementName = "Architecture1";

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

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

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