public void TestChineseRestTermHelper()
        {
            var x = new Int32[3];

            x[0] = 2;
            x[1] = 1;
            x[2] = 0;

            var moduli = new Int32[3];

            moduli[0] = 4;
            moduli[1] = 3;
            moduli[2] = 5;

            var res = moduli.ChineseRestTerm(x);

            Assert.AreEqual(-2, res % 4);
            Assert.AreEqual(-2, res % 3);
            Assert.AreEqual(0, res % 5);
        }