Ejemplo n.º 1
0
        public void Load()
        {
            EcorePackageImpl.init();

            //TODO: https://msdn.microsoft.com/de-de/library/ms182475.aspx
            var resource = new XmiResource();



            var epackage = resource.Load("C:/Users/Simon/Data/git2/crossecore/model/Ecore.ecore");



            //resource.Save("");

            Assert.IsNotNull(epackage);
        }
Ejemplo n.º 2
0
//        [TestMethod]
        public void Load()
        {
            EcorePackageImpl.init();

            //TODO: https://msdn.microsoft.com/de-de/library/ms182475.aspx
            var resource = new XmiResource();



            var epackage = resource.Load("C:/Users/Simon/Data/git2/crossecore/model/Ecore.ecore") as EPackage;



            foreach (EClassifier c in epackage.eClassifiers)
            {
                Debug.WriteLine(c.name);
            }

            resource.Save("");

            Assert.IsNotNull(epackage);
        }