public void ThenIVerifyTagsStructureInFileAsDisplayedInTheTable_(string FileName, Table table) { IEnumerable <XMLData> Data = table.CreateSet <XMLData>(); List <XMLData> List = (List <XMLData>)Data; if (!XMLActionUtilities.VerifyTagsInXMLFile(FileName, List)) { ScenarioContext.Current["Comments"] = ScenarioContext.Current["Comments"] + "Failed to verify tags in the XML file. \n"; ScenarioContext.Current["ActResult"] = "Failed"; } }
public void ThenICompareAndVerifyTheTagsInSourceXMLFileFromProjectAndTargetXmlFileFromTestFolderAreSame_() { string File1 = ScenarioContext.Current["XMLFileNameInProject"].ToString(); string File2 = ScenarioContext.Current["XMLFileNameInTestFolder"].ToString(); if (!XMLActionUtilities.VerifyTagsInXMLFile(File1, File2)) { ScenarioContext.Current["Comments"] = ScenarioContext.Current["Comments"] + "Failed to verify tags in the XML file. \n"; ScenarioContext.Current["ActResult"] = "Failed"; } }