public void TestMethodFactorial() { long num = 17; long expected = 355687428096000; long actual = ScientificCalc.Factorial(num); Assert.AreEqual(expected, actual); }
private void buttonN_Click(object sender, EventArgs e) { buttonEquals.PerformClick(); display.Text = ScientificCalc.Factorial(Convert.ToInt64(display.Text)).ToString(); }