Пример #1
0
 public void TestLoadingTestVM()
 {
     if (!File.Exists(modelPath))
     {
         // TODO: Find a better way to find the example files if app base is incorrect
         modelPath = "/home/travis/build/se-passau/SPLConqueror/SPLConqueror/Example"
                     + "Files/VariabilityModelSampling.xml";
     }
     Assert.IsTrue(model.loadXML(modelPath));
     GlobalState.varModel = model;
 }
Пример #2
0
        public static bool loadVM()
        {
            if (!File.Exists(modelPath))
            {
                // TODO: Find a better way to find the example files if app base is incorrect
                modelPath = "/home/travis/build/se-passau/SPLConqueror/SPLConqueror/Example"
                            + "Files/VariabilityModelSampling.xml";
            }

            model = new VariabilityModel("test");
            bool wasSuccessful = model.loadXML(modelPath);

            GlobalState.varModel = model;
            return(wasSuccessful);
        }