Esempio n. 1
0
        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");
        }
Esempio n. 2
0
        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);
            }
        }