Пример #1
0
        private void SqrtButton_Click(object sender, EventArgs e)
        {
            CalcFinction s = new CalcFinction();

            displayX.Text = Convert.ToString(s.Sqrt(Convert.ToDouble(displayX.Text)));
            displayY.Clear();
        }
Пример #2
0
        public void SqrtTest_forInt_x9_expected_3()
        {
            //arrage

            double x = 9;

            double expected = 3;

            //act

            CalcFinction s = new CalcFinction();

            double actual = s.Sqrt(x);

            //assert

            Assert.AreEqual(expected, actual);
        }