public void Dollar_Convert_Number_to_Text()
        {
            string value  = Dollars.ConvertNumberToText(Convert.ToDecimal(785487)).ToString();
            string result = "seven hundred eighty five thousand four hundred eighty seven dollars";

            Assert.AreEqual(result.ToLower(), value.ToLower().Trim().Replace("  ", " "));
        }
Beispiel #2
0
 private void btnCalc_Click(object sender, EventArgs e)
 {
     if (txtvalue.Text == "")
     {
         lblSonuc.Text = "Lütfen Rakam belirtiniz.";
     }
     else
     {
         lblSonuc.Text = Dollars.ConvertNumberToText(Convert.ToDecimal(txtvalue.Text)).ToString();
     }
 }