Example #1
0
        public void NegativeTest(int direction)
        {
            var param = new ParamInModel(20, 20, 0);
            var wire  = new Wires(new Point(0, 0), direction, param.Length);

            Assert.Catch <Exception>(() => param.FindEndX(wire));
        }
Example #2
0
        public void PositiveTest(int direction, int ans)
        {
            var param = new ParamInModel(20, 20, 0);
            var wire  = new Wires(new Point(0, 0), direction, param.Length);

            var result = param.FindEndX(wire);

            Assert.AreEqual(ans, result);
        }