summaryrefslogtreecommitdiffstats
path: root/tests/CS340.PrimDijkstra.Tests/PrimDijkstraShould.cs
blob: 2093420876253887b735eed7f930512314eb7f42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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);
        }
    }
}