예제 #1
0
        public void Derivate()
        {
            var test = new Polinom(new List <Tuple <double, int> >
            {
                new Tuple <double, int> (5, 4),
                new Tuple <double, int> (6, 3),
                new Tuple <double, int> (1, 2),
                new Tuple <double, int> (-12, 0)
            });

            test.Derivate();
            var test2 = new Polinom(new List <Tuple <double, int> >
            {
                new Tuple <double, int> (20, 3),
                new Tuple <double, int> (18, 2),
                new Tuple <double, int> (2, 1),
            });

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