Esempio n. 1
0
        public void test_compute()
        {
            dataModels = new DataModelContainer();

            string modelName             = "DA.FALCON.7X.7X.UV1.DRY";
            List <CommandFactor> factors = new List <CommandFactor>();

            factors.Add(new CommandFactor("SF=2"));
            factors.Add(new CommandFactor("ALT=1600"));
            factors.Add(new CommandFactor("TEMP=30"));
            factors.Add(new CommandFactor("GW=62000"));
            factors.Add(new CommandFactor("A/I=0"));

            //System.Diagnostics.Trace.Listeners.Add(new System.Diagnostics.DefaultTraceListener());


            dataModels.loadDataModels("", "DA.*");
            // TODO Tester si on peut bien injecter un nouveau directory path grace à loadDataModels()


            //System.Diagnostics.Debug.WriteLine("Data Models Directory : " + dataModels.getDataModelsDirectory()[0]);
            //System.Diagnostics.Debug.WriteLine("Press a key");

            // Assert.IsTrue(dataModels.dataModelIndex(modelName) == 0);
            // Assert.IsFalse(double.IsNaN(dataModels.compute(modelName, factors)));
        }