Пример #1
0
        public void ContentWithZeros()
        {
            var p = new PolyB(2, 0, 4, 0, 2);
            var n = p.Content();

            Assert.AreEqual(2, n);
        }
Пример #2
0
        public void ContentMixed()
        {
            var p = new PolyB(3, -9, 6);
            var n = p.Content();

            Assert.AreEqual(3, n);
        }
Пример #3
0
        public void ContentAllNegative()
        {
            var p = new PolyB(-3, -6, -6);
            var n = p.Content();

            Assert.AreEqual(-3, n);
        }
Пример #4
0
        public void ContentAllPositive()
        {
            var p = new PolyB(3, 9, 6);
            var n = p.Content();

            Assert.AreEqual(3, n);
        }