Algorithmix.UnitTest.UtilityTest.TestSlope C# (CSharp) Method

TestSlope() private method

private TestSlope ( ) : void
return void
        public void TestSlope()
        {
            Point trPoint = new Point(10, 10);
            Point blPoint = new Point(5, 4);

            double actual = Utility.SlopeFromPoints(trPoint, blPoint);
            double expected = (float) 6/5;

            Assert.IsTrue(actual == expected);
        }