public void Dijkstra_ReturnsNull_WhenSearchItemIsNotFound()
        {
            var testGraph      = CreateWeightedTestGraph();
            var expectedResult = new ValueTuple <List <string>, uint>(null, 0);

            var result = GraphFunctions.Dijkstra <string>(testGraph, "NotValid");

            Assert.AreEqual(expectedResult, result);
        }
        public void Dijkstra_ReturnsShortestPath_WhenVariablesAreValid(Graph testGraph, string searchItem, ValueTuple <List <string>, uint> expectedResult)
        {
            var result = GraphFunctions.Dijkstra <string>(testGraph, searchItem);

            Assert.AreEqual(expectedResult, result);
        }
        public void Dijkstra_ThrowsArgumentNullException_WhenSearchItemIsNull()
        {
            Graph testGraph = new Graph(new List <Edge>(), new List <Node>());

            Assert.That(() => GraphFunctions.Dijkstra <string>(testGraph, null), Throws.ArgumentNullException);
        }
        public void Dijkstra_ThrowsArgumentNullException_WhenGraphIsNull()
        {
            Graph testGraph = null;

            Assert.That(() => GraphFunctions.Dijkstra <string>(testGraph, ""), Throws.ArgumentNullException);
        }