Example #1
0
        public void InterpretCommandTest()
        {
            RunMode actualMode = Constants.IsWinCE ? RunMode.Real : RunMode.Virtual;
            Drive drv = new Drive(actualMode);
            Robot r = new Robot(actualMode);
            World.Robot = r;

            Interpreter interpreter = new Interpreter();
            //Interpreter_Accessor target = new Interpreter_Accessor(); // TODO: Initialize to an appropriate value
            Command cmd = new Command(); // TODO: Initialize to an appropriate value
            cmd.Method = "RunLine";//RunLine(float length, float speed, float acceleration)
            //cmd.Parameters.Add(new CommandParam() { Type = typeof(float), Parameter = 1 });
            //cmd.Parameters.Add(new CommandParam() { Type = typeof(float), Parameter = 1 });
            //cmd.Parameters.Add(new CommandParam() { Type = typeof(float), Parameter = 1 });
            ////cmd.Parameters.Add(new CommandParam() { Type = typeof(float), Parameter = 1 });

            //interpreter.InterpretCommand(cmd);

            //target.InterpretCommand(cmd);

            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
Example #2
0
 public void InterpretMessageTest()
 {
     Interpreter target = new Interpreter(); // TODO: Initialize to an appropriate value
     string message = string.Empty; // TODO: Initialize to an appropriate value
     target.InterpretMessage(message);
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }
Example #3
0
 public void InterpreterConstructorTest()
 {
     Interpreter target = new Interpreter();
     Assert.Inconclusive("TODO: Implement code to verify target");
 }