コード例 #1
0
        public void TransformToUmlTest()
        {
            FiniteStateMachine[] fsms;
            UmlModel             methodReturn;

            fsms = StructureCollectionUtil.GetFSMUmlActOats().Cast <FiniteStateMachine>().ToArray();

            methodReturn = converter.TransformToUml(fsms);

            Assert.IsNotNull(methodReturn, "Method returned null");
            Assert.IsTrue(methodReturn.Diagrams.Count > 1, "Nothing was converted");
        }
コード例 #2
0
        public void ConverterTest()
        {
            List <GeneralUseStructure> listModel, methodReturn;
            StructureType type;

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

            //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");
        }