コード例 #1
0
        public void InsertTest()
        {
            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.Insert(16, 4);
            var test2 = new Polinom(new List <Tuple <double, int> >
            {
                new Tuple <double, int> (21, 4),
                new Tuple <double, int> (5, 3),
                new Tuple <double, int> (1, 2),
                new Tuple <double, int> (-11, 0)
            });

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