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       = "";
    }
示例#2
0
        public void MultiplyTest()
        {
            double x = 3.0;
            double y = 12.7;

            double res = c1.Multiply(x, y);

            Assert.That((x * y), Is.EqualTo(res));
        }