public void Pow_CheckResult_AreEqual <T> ( T factor, UInt32 power, T expected, IRing <T> ring) { Assert.AreEqual(expected, ring.Pow(factor, power)); }
/// <summary> /// Multiplication of the multiplication function power times. /// </summary> /// <param name="ring">The ring.</param> /// <param name="power">The power.</param> /// <typeparam name="T">The 1st type parameter.</typeparam> /// <returns>The result.</returns> public static Func <T, T> Pow <T> (this IRing <T> ring, uint power) { return((x) => ring.Pow(x, power)); }