public void Connectors_fct_Test() { XDocument xml = XDocument.Load(@"C:\Users\maxei\source\repos\EAST_ADL_METRICS\EAST_ADL_METRICS_Test\TestFiles\Connectors.eaxml"); string elementName = "DFT1"; Metric expectedMetric = new Metric { Name = "Connectors_fct", Category = "Complexity", Type = "FunctionType", Nested = false, Value = 1 }; Metric actualMetric = functionType.Connectors_fct(xml, elementName); Assert.AreEqual(expectedMetric.Value, actualMetric.Value); }