コード例 #1
0
        public void testGetConst()
        {
            Line test = new Line(new Point(10, 10), new Point(15, 20));

            Assert.AreEqual(-10, test.getConstant(), "the constant is correct");
        }
コード例 #2
0
        public void testGetSlope()
        {
            Line test = new Line(new Point(10, 10), new Point(15, 20));

            Assert.AreEqual(2, test.getSlope(), "the slope is correct");
        }