Ejemplo n.º 1
0
        public void ConverterTest()
        {
            List <GeneralUseStructure> listModel, methodReturn;
            StructureType type;

            listModel = new List <GeneralUseStructure>();
            listModel = StructureCollectionUtil.GetStructureCollectionActOats();

            //this parameter is not used
            type = StructureType.OATS;

            methodReturn = converter.Converter(listModel, type);

            Assert.IsNotNull(methodReturn, "Method returned null");
            Assert.IsTrue(methodReturn.Count == 1, "Nothing was converted");
        }
Ejemplo n.º 2
0
        public static List <GeneralUseStructure> GetFSMUmlActOats()
        {
            try
            {
                List <GeneralUseStructure> listModel;
                StructureType type;
                UmlToFsm      converter;

                listModel = new List <GeneralUseStructure>();
                listModel = GetStructureCollectionActOats();

                converter = new UmlToFsm();

                //this parameter is not used
                type = StructureType.OATS;

                return(converter.Converter(listModel, type));
            }
            catch (Exception e)
            {
                throw new Exception("There's a problem with UmlToFsm: " + e.Message);
            }
        }