protected void Button3_Click(object sender, EventArgs e) { decimal oper1 = Convert.ToDecimal(TextBox1.Text); decimal oper2 = Convert.ToDecimal(TextBox2.Text); arithmeticresults.Text = mycalc.Multiply(oper1, oper2).ToString(); errorslabel.Text = ""; }
public void MultiplyTest() { double x = 3.0; double y = 12.7; double res = c1.Multiply(x, y); Assert.That((x * y), Is.EqualTo(res)); }