예제 #1
0
        public void FindPath_ReturnsNullGraphPath()
        {
            var algorithm = new NullAlgorithm();

            var path = algorithm.FindPath();

            Assert.IsTrue(path.IsNullObject());
        }
예제 #2
0
 protected PathFindingModel(ILog log, IAssembleClasses algorithms,
                            IMainModel mainViewModel, BaseEndPoints endPoints)
 {
     AlgorithmKeys      = algorithms.ClassesNames.ToList();
     this.mainViewModel = mainViewModel;
     DelayTime          = 4;
     timer           = new Stopwatch();
     path            = new NullGraphPath();
     algorithm       = new NullAlgorithm();
     graph           = mainViewModel.Graph;
     assembleClasses = algorithms;
     this.endPoints  = endPoints;
     this.log        = log;
 }