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_IDE_when_is_empty() { string FieldIDE = fields.FillFieldIDE("IDE"); Assert.AreEqual("0", FieldIDE.ToString()); }