public void ParserMethodTest() { String path, name; StructureCollection returnModel; path = "..\\..\\..\\ogmaj - oats - astah.xml"; name = "test"; returnModel = importer.ParserMethod(path, ref name, null); Assert.IsNotNull(returnModel, "Method returned null"); Assert.IsTrue(returnModel.listGeneralStructure.Count > 0, "Nothing was parsed"); }
public static List <GeneralUseStructure> GetStructureCollectionSeqJUnit() { try { String path, name; SequenceDiagramImporter importer; name = "test"; path = "..\\..\\..\\TestFiles\\tcc edemar junit -sequence diag - astah.xml"; importer = new SequenceDiagramImporter(); return(importer.ParserMethod(path, ref name, null).listGeneralStructure); } catch (Exception e) { throw new Exception("There's a problem with SequenceDiagramImporter: " + e.Message); } }