public void GetPath_ExistPath_Path()
        {
            var algo = new DijkstraAlgo();

            var pathToFile = "input.txt";

            var start = "Москва";

            var end = "Владивосток";

            var path = algo.GetPath(pathToFile, start, end);

            var coasts = new List <double>
            {
                20,
                20
            };

            var citiesName = new List <string>
            {
                "Владивосток",
                "Санкт-Петербург"
            };

            var expected = (citiesName, coasts);

            Assert.IsTrue(AreEqual(path, expected));
        }
        public void GetPath_InvalidDataFormat_Exception()
        {
            var algo = new DijkstraAlgo();

            var pathToFile = "invalid.txt";

            var start = "First";

            var end = "Second";

            Assert.Throws <Exception>(() => algo.GetPath(pathToFile, start, end));
        }
        public void GetPath_NotExistPath_Exception()
        {
            var algo = new DijkstraAlgo();

            var pathToFile = "input.txt";

            var start = "Владивосток";

            var end = "Москва";

            Assert.Throws <Exception>(() => algo.GetPath(pathToFile, start, end));
        }
        public void GetPath_NotExistPathToFile_Exception()
        {
            var algo = new DijkstraAlgo();

            var pathToFile = "NotExist.txt";

            var start = "First";

            var end = "Second";

            Assert.Throws <Exception>(() => algo.GetPath(pathToFile, start, end));
        }