Exemplo n.º 1
0
        public void TestRun_NoScript()
        {
            MatlabProperties props = new MatlabProperties();
            MatlabProcess    p     = new MatlabProcess();

            p.Run(props);
        }
Exemplo n.º 2
0
        public void TestRun_OutputVariableBadType()
        {
            string           filePath = "BadOutputTest.m";
            Image            img      = Image.FromFile("input.bmp");
            MatlabProperties props    = new MatlabProperties();

            props.ScriptFile = filePath;
            MatlabProcess p = new MatlabProcess();

            p.Input = img;
            p.Run(props);
        }
Exemplo n.º 3
0
        public void TestRun_OutputPointsToFile()
        {
            string           filePath = "ValidScript.m";
            Image            img      = Image.FromFile("input.bmp");
            MatlabProperties props    = new MatlabProperties();

            props.ScriptFile = filePath;
            MatlabProcess p = new MatlabProcess();

            p.Input = img;
            p.Run(props);

            Assert.IsNotNull(p.Output);
        }
Exemplo n.º 4
0
        public void TestRun_NullProperties()
        {
            MatlabProcess p = new MatlabProcess();

            p.Run(null);
        }
Exemplo n.º 5
0
        public void TestRun()
        {
            MatlabProcess p = new MatlabProcess();

            p.Run();
        }