public bool PolinomialEqualsTests(double[] coefs, int degree)
        {
            Polinomial firstPol  = new Polinomial(new double[] { 1, 2, 3 }, 2);
            Polinomial secondPol = new Polinomial(coefs, degree);

            return(firstPol.Equals(secondPol));
        }
예제 #2
0
        public void EqualsTest2()
        {
            Polinomial a = new Polinomial(new double[] { 2, 3, 4, 5 });
            Polinomial b = new Polinomial(new double[] { 2, 2, 4, 5 });

            Assert.IsFalse(a.Equals(b));
        }