示例#1
0
        public void FindPath_ShouldReturnAnObjectWithProperties(int[] arr)
        {
            var result = PathUtilities.FindPath(arr);

            Assert.NotNull(result.Path);
            Assert.Equal(3, result.Moves);
        }
示例#2
0
        public PathEntity Create(int[] array)
        {
            var entry  = PathUtilities.FindPath(array);
            var entity = new PathEntity();

            if (entry != null)
            {
                entity = _pathRepository.Create(entry.ToEntity(array));
            }

            return(entity);
        }
示例#3
0
        public void FindPath_ShouldReturnNull(int[] arr)
        {
            var result = PathUtilities.FindPath(arr);

            Assert.Null(result);
        }