public void TestOperatorMinus(int[] a, int[] b, int r)
        {
            Polynimial p1 = new Polynimial(a);
            Polynimial p2 = new Polynimial(b);
            Polynimial p3;

            Debug.WriteLine(p1);
            Debug.WriteLine(p2);

            p3 = p1 - p2;
            Debug.WriteLine(p3);

            Assert.AreEqual(p3.Calculate(r), p1.Calculate(r) - p2.Calculate(r));
        }
        public void TestOperatorMullConst(int[] a, int c)
        {
            int r = 3;
            Polynimial p1 = new Polynimial(a), p2, p3;

            Debug.WriteLine(p1);
            p2 = p1 * c;
            Debug.WriteLine(p2);
            p3 = p1 * c;
            Debug.WriteLine(p3);

            Assert.AreEqual(p1.Calculate(r)*c, p2.Calculate(r));
            Assert.AreEqual(p3.Calculate(r), p2.Calculate(r));
        }
        public bool TestEquals(int[] a, int[] b)
        {
            Polynimial p1 = new Polynimial(a);
            Polynimial p2 = new Polynimial(b);

            Debug.WriteLine(p1);
            Debug.WriteLine(p2);

            return p1 == p2;
        }
 public void TestConstructor()
 {
     int[] f = null;
     Polynimial p = new Polynimial(f);
 }
        public bool TestGetHashCode(int[] a, int[] b)
        {
            Polynimial p1 = new Polynimial(a);
            Polynimial p2 = new Polynimial(b);

            return p1.GetHashCode() == p2.GetHashCode();
        }