コード例 #1
0
        public void multiplyPowersTest(double x, double y, int z)
        {
            double ans = x * y;

            for (int i = 1; i < z; i++)
            {
                ans *= ans;
            }
            Assert.AreEqual(ans, Powers.RaiseToPower(x, y, z));
        }