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; }
public void FindMethodOk() { clsTools AnTools = new clsTools(); Boolean Found = false; Int32 AddressNo = 1; Found = AnTools.Find(AddressNo); Assert.IsTrue(Found); }
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); }
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); }
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); }
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); }
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); }
public void InstanceOK() { clsTools AnTools = new clsTools(); Assert.IsNotNull(AnTools); }