Beispiel #1
0
        public void SumTest()
        {
            var test = new Polinom(new List <Tuple <double, int> >
            {
                new Tuple <double, int> (5, 4),
                new Tuple <double, int> (5, 3),
                new Tuple <double, int> (1, 2),
                new Tuple <double, int> (-11, 0)
            });

            test.Sum(new Odnochlen(1, 4));
            var test2 = new Polinom(new List <Tuple <double, int> >
            {
                new Tuple <double, int> (6, 4),
                new Tuple <double, int> (5, 3),
                new Tuple <double, int> (1, 2),
                new Tuple <double, int> (-11, 0),
                new Tuple <double, int> (0, 0)
            });

            Assert.AreEqual(true, test2.ToString() == test.ToString());
        }