示例#1
0
        public void IgnoreInvalidOrder()
        {
            GCodeFileOptions options = new GCodeFileOptions();

            options.CheckLineNumers = false;
            GCodeFile file = new GCodeFile("N2N1N3", options);

            Assert.IsTrue(file.Commands.Count == 3);
        }
示例#2
0
        public void NotUseMappedObjects()
        {
            GCodeFileOptions options = new GCodeFileOptions();

            options.UseMappedObjects = false;
            GCodeFile file = new GCodeFile("G1X1", options);

            Assert.IsTrue(!(file.Commands[0] is RapidLinearMove));
        }
示例#3
0
        public void IgnoreCrcCheck()
        {
            GCodeFileOptions options = new GCodeFileOptions();

            options.CheckCRC = false;
            GCodeFile file = new GCodeFile("G1*0", options);

            Assert.IsTrue(file.Commands[0].CommandSubType == 1);
        }