Exemple #1
0
        public void GetVertex_VertexExists_Works()
        {
            var v1 = new TestVertex(1, "v1");

            TestGraph.Empty().AddVertex(v1).GetVertex(1).Should().Be(v1);
        }
Exemple #2
0
        public void TryGetVertex_VertexExists_Works()
        {
            var v1 = new TestVertex(1, "v1");

            TestGraph.Empty().AddVertex(v1).TryGetVertex(1).Should().Be(v1.ToMaybe());
        }