public void Dollar_Convert_Text_to_Number() { string value = Dollars.ConvertTextToNumber("seven hundred eighty five thousand four hundred eighty seven").ToString(); string result = "785487"; Assert.AreEqual(result, value); }
private void btnDollarTtoN_Click(object sender, EventArgs e) { if (txtvalue_TtoN.Text == "") { lblSonuc_TtoN.Text = "Lütfen Yazı belirtiniz."; } else { lblSonuc_TtoN.Text = Dollars.ConvertTextToNumber(txtvalue_TtoN.Text).ToString(); } }