示例#1
0
        public void Test3()
        {
            var me     = new ModularExponentiation();
            var result = me.Calc(2, 5, 13);

            Assert.That(result, Is.EqualTo(6));
        }
示例#2
0
        public void Test1()
        {
            var me = new ModularExponentiation();

            Assert.That(me.Power(5, 7), Is.EqualTo((int)Math.Pow(5, 7)));
        }