Example #1
0
        public void TestRun_NoScript()
        {
            MatlabProperties props = new MatlabProperties();
            MatlabProcess    p     = new MatlabProcess();

            p.Run(props);
        }
Example #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);
        }
Example #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);
        }