예제 #1
0
        private static Vector Calculate(IRandom random)
        {
            ILocationServices svc = new LocationServices(random);

            var location = new Mock<ILocation>(MockBehavior.Strict);
            location.SetupGet(x => x.Position).Returns(new Position(location.Object, Vector.Zero));

            var result = svc.GetExitPosition(location.Object);
            return result;
        }