public static AreEqual ( |
||
tskNodes | ||
currentPath | string | |
loggedData | List |
|
catalog | AgGateway.ADAPT.ApplicationDataModel.ADM.Catalog | |
Результат | void |
public static void AreEqual(XmlNodeList tskNodes, string currentPath, List<LoggedData> loggedData, Catalog catalog)
{
int tsksWithTlgs = 0;
foreach (XmlNode node in tskNodes)
{
if (node.SelectNodes("TLG").Count > 0)
{
tsksWithTlgs++;
var matchingLoggedData = loggedData.SingleOrDefault(x => x.Id.FindIsoId() == node.Attributes["A"].Value);
AreEqual(node, currentPath, matchingLoggedData, catalog);
}
}
Assert.AreEqual(tsksWithTlgs, loggedData.Count);
}
LoggedDataAssert::AreEqual ( |
public static void AreEqual(XmlNode taskData, Documents documents, Catalog catalog, string currentPath) { var tskNodes = taskData.SelectNodes("TSK"); LoggedDataAssert.AreEqual(tskNodes, currentPath, documents.LoggedData.ToList(), catalog); }