summaryrefslogtreecommitdiffstats
path: root/tests/CS340.PrimDijkstra.Tests/PrimDijkstraShould.cs
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2021-04-25 20:39:39 -0500
committerToby Vincent <tobyv13@gmail.com>2021-04-25 20:40:29 -0500
commit9de1fcee15b89e8a08fdfe32752488d2c2026f0a (patch)
treeb809b8c968234c04d0eb4376701b56ff6b586c8a /tests/CS340.PrimDijkstra.Tests/PrimDijkstraShould.cs
parent629617ac233de447cc42b5be17050d38fd08a8c0 (diff)
added PrimDijkstra tests
Diffstat (limited to 'tests/CS340.PrimDijkstra.Tests/PrimDijkstraShould.cs')
-rw-r--r--tests/CS340.PrimDijkstra.Tests/PrimDijkstraShould.cs35
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/CS340.PrimDijkstra.Tests/PrimDijkstraShould.cs b/tests/CS340.PrimDijkstra.Tests/PrimDijkstraShould.cs
new file mode 100644
index 0000000..2093420
--- /dev/null
+++ b/tests/CS340.PrimDijkstra.Tests/PrimDijkstraShould.cs
@@ -0,0 +1,35 @@
+using System.Diagnostics;
+using Extensions;
+using Graph;
+using Graph.IO;
+using Interfaces;
+using Xunit;
+using Xunit.Abstractions;
+
+namespace PrimDijkstra.Tests
+{
+ using Graph = Graph<Vertex<Edge<double>, double>, Edge<double>, double>;
+
+ public class PrimDijkstraShould
+ {
+ private readonly ITestOutputHelper Output;
+
+ public PrimDijkstraShould(ITestOutputHelper output)
+ {
+ Output = output;
+ }
+
+ [Fact]
+ public void Prim_Graph_OuputMST()
+ {
+ // Arrange
+ Graph graph = GraphFile.Read(new FileReader("graphs/graph1.txt")).MST(0);
+
+ // Act
+ Output.WriteLine(graph.ToString());
+
+ // Assert
+ Assert.True(true);
+ }
+ }
+} \ No newline at end of file