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

            p.Run(props);
        }
예제 #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);
        }
예제 #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);
        }
예제 #4
0
        public void TestRun_NullProperties()
        {
            MatlabProcess p = new MatlabProcess();

            p.Run(null);
        }
예제 #5
0
        public void TestRun()
        {
            MatlabProcess p = new MatlabProcess();

            p.Run();
        }