public void AutoAddCustomCommand()
 {
     CommandReflection.ClearMappings();
     var cmd = new CustomCommand();
     var g   = cmd.ToGCode();
 }
 public void AutoAddCustomCommand2()
 {
     CommandReflection.ClearMappings();
     var cmd = CommandMapping.Parse(typeof(CustomCommand), "M999 X");
     var g   = cmd.ToGCode();
 }
 public void CustomCommandAddType()
 {
     CommandReflection.ClearMappings();
     CommandReflection.AddMappedType(typeof(CustomCommand));
     var cmd = CommandMapping.Parse("M999 X");
 }
 public void CustomCommandAddAssembly()
 {
     CommandReflection.ClearMappings();
     CommandReflection.AddMappedTypesFromAssembly(System.Reflection.Assembly.GetExecutingAssembly());
     var cmd = CommandMapping.Parse("M999 X");
 }
 public void CustomCommandMappingException()
 {
     CommandReflection.ClearMappings();
     Assert.Catch(typeof(Exception), () => { var cmd = CommandMapping.Parse("M999 X"); });
 }