public void Derivatives_Test() { XDocument xml = XDocument.Load(@"C:\Users\maxei\source\repos\EAST_ADL_METRICS\EAST_ADL_METRICS_Test\TestFiles\Derivatives.eaxml"); string elementName = "QReqt1"; Metric expectedMetric = new Metric { Name = "Derivatives", Category = "Size", Type = "Requirement", Nested = false, Value = 5 }; Metric actualMetric = requirement.Derivatives(xml, elementName); Assert.AreEqual(expectedMetric.Value, actualMetric.Value); }