예제 #1
0
        private void AddFrameButton_Click(object sender, System.EventArgs e)
        {
            Dictionary <string, string> valuesInColumn = new Dictionary <string, string>();

            string FieldStandardID = fields.FillingField(standardIDTexbox.Text, "Standard ID", 2047);

            errors.WrongFillField(FieldStandardID, "Standard ID");

            string FieldExtendedID = fields.FillingField(ExtendedIDTextBox.Text, "Extended ID", 262143);

            errors.WrongFillField(FieldExtendedID, "Extended ID");

            string FieldIDEID = fields.FillFieldIDE(IDETextBox.Text);

            string FielRTRID = fields.FillFieldRTR(RTRTextBox.Text);

            valuesInColumn.Add("Standard ID", FieldStandardID);

            valuesInColumn.Add("Extended ID", FieldExtendedID);

            valuesInColumn.Add("IDE", FieldIDEID);

            valuesInColumn.Add("RTR", FielRTRID);

            DataTableGrid.Rows.Add(valuesInColumn["Standard ID"], "0x" + valuesInColumn["Extended ID"], valuesInColumn["IDE"], valuesInColumn["RTR"], "1", DataTextBox.Text, ".", "0");
        }
        public void test_to_filling_out_field_standard_ID_when_is_fill_and_set_on_HEX()
        {
            convert.ChangeTextOnButtonSystemConverting();

            string FieldStandardID = fields.FillingField("123", "Standard ID", 2047);

            Assert.AreEqual("7B", FieldStandardID);
        }