public void FindPath_ShouldReturnAnObjectWithProperties(int[] arr) { var result = PathUtilities.FindPath(arr); Assert.NotNull(result.Path); Assert.Equal(3, result.Moves); }
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); }
public void FindPath_ShouldReturnNull(int[] arr) { var result = PathUtilities.FindPath(arr); Assert.Null(result); }