public void AddTestSameValue()
        {
            DataStructure.Polynomial.Polynomial p = new DataStructure.Polynomial.Polynomial();
            p.SetItem(20, 3);
            p.SetItem(5, 2);
            p.SetItem(0, 4);

            DataStructure.Polynomial.Polynomial p2 = new DataStructure.Polynomial.Polynomial();
            p2.SetItem(20, 3);
            p2.SetItem(5, 2);
            p2.SetItem(0, 4);

            DataStructure.Polynomial.Polynomial polyAdd = p.Add(p2);

            Assert.AreEqual(6, polyAdd.Coef(20));
            Assert.AreEqual(4, polyAdd.Coef(5));
            Assert.AreEqual(8, polyAdd.Coef(0));
        }
        public void AddTest()
        {
            DataStructure.Polynomial.Polynomial p = new DataStructure.Polynomial.Polynomial();
            p.SetItem(20, 3);
            p.SetItem(5, 2);
            p.SetItem(0, 4);

            DataStructure.Polynomial.Polynomial p2 = new DataStructure.Polynomial.Polynomial();
            p2.SetItem(4, 1);
            p2.SetItem(3, 10);
            p2.SetItem(2, 3);
            p2.SetItem(0, 1);

            DataStructure.Polynomial.Polynomial polyAdd = p.Add(p2);

            Assert.AreEqual(3, polyAdd.Coef(20));
            Assert.AreEqual(2, polyAdd.Coef(5));
            Assert.AreEqual(1, polyAdd.Coef(4));
            Assert.AreEqual(10, polyAdd.Coef(3));
            Assert.AreEqual(3, polyAdd.Coef(2));
            Assert.AreEqual(5, polyAdd.Coef(0));
        }