예제 #1
0
        public void ContentWithZeros()
        {
            var p = new PolyI(2, 0, 4, 0, 2);
            var n = p.Content();

            Assert.AreEqual(2, n);
        }
예제 #2
0
        public void ContentMixed()
        {
            var p = new PolyI(3, -9, 6);
            var n = p.Content();

            Assert.AreEqual(3, n);
        }
예제 #3
0
        public void ContentAllNegative()
        {
            var p = new PolyI(-3, -6, -6);
            var n = p.Content();

            Assert.AreEqual(-3, n);
        }
예제 #4
0
        public void ContentAllPositive()
        {
            var p = new PolyI(3, 9, 6);
            var n = p.Content();

            Assert.AreEqual(3, n);
        }