示例#1
0
文件: frmMain.cs 项目: SK21/AOG_RC
 public frmMain()
 {
     InitializeComponent();
     Tls                       = new clsTools(this);
     CommPort                  = new SerialComm(this, PortID);
     UDPmodulesConfig          = new UDPComm(this, 29900, 28800, 1482); // pcb config
     CommPort.ModuleConnected += CommPort_ModuleConnected;
 }
示例#2
0
        public void FindMethodOk()
        {
            clsTools AnTools   = new clsTools();
            Boolean  Found     = false;
            Int32    AddressNo = 1;

            Found = AnTools.Find(AddressNo);
            Assert.IsTrue(Found);
        }
示例#3
0
        public void ToolIdOK()
        {
            //create an instance of the class we want to create
            clsTools AnTools = new clsTools();
            //create some test data to assign to the property
            Int32 TestData = 1;

            //assign the data to the property
            AnTools.ToolId = TestData;
            //test to see that the two values are the same
            Assert.AreEqual(AnTools.ToolId, TestData);
        }
示例#4
0
        public void GradeOfToolOK()
        {
            //create an instance of the class we want to create
            clsTools AnTools = new clsTools();
            //create some test data to assign to the property
            string TestData = "LE1 4AB";

            //assign the data to the property
            AnTools.Grade = TestData;
            //test to see that the two values are the same
            Assert.AreEqual(AnTools.Grade, TestData);
        }
示例#5
0
        public void DateManufacturedOK()
        {
            //create an instance of the class we want to create
            clsTools AnTools = new clsTools();
            //create some test data to assign to the property
            DateTime TestData = DateTime.Now.Date;

            //assign the data to the property
            AnTools.DateAdded = TestData;
            //test to see that the two values are the same
            Assert.AreEqual(AnTools.DateAdded, TestData);
        }
示例#6
0
        public void ActivePropertyOK()
        {
            //create an instance of the class we want to create
            clsTools AnTools = new clsTools();
            //create some test data to assign to the property
            Boolean TestData = true;

            //assign the data to the property
            AnTools.Active = TestData;
            //test to see that the two values are the same
            Assert.AreEqual(AnTools.Active, TestData);
        }
示例#7
0
        public FormMain()
        {
            InitializeComponent();
            Tls = new clsTools(this);
            SER = new SerialComm(this);

            LocalIP  = "127.110.0.0";
            UDPlocal = new UDPComm(this, LocalIP, 8500, 1482);

            Properties.Settings.Default.DestinationIP = BroadcastIP(UDPlocal.GetLocalIP());

            UDPnetwork = new UDPComm(this, Properties.Settings.Default.DestinationIP, NetReceive, 1480);

            IMUdata = new PGN32750(this);
        }
示例#8
0
        public void InstanceOK()
        {
            clsTools AnTools = new clsTools();

            Assert.IsNotNull(AnTools);
        }