Ejemplo n.º 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.FindEndY(wire));
        }
Ejemplo n.º 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.FindEndY(wire);

            Assert.AreEqual(ans, result);
        }