0

Wondering what the proper way to test a collection, that is not an ICollection, is since Assert.Contains(object, ICollection) cannot be used for something like a constructed PriorityQueue?

[Test]
        public void AddTest()
        {
            PriorityQueue<Vertex> vertexQueue1 = new PriorityQueue<Vertex>();
            Vertex v1 = new Vertex("V");
            v1.minDistance = 10;
            vertexQueue.add(v1.minDistance, v1);
            Assert.Contains(v1, [I]vertexQueue1[/I]);
         }
1
Contributor
1
Reply
2
Views
5 Years
Discussion Span
Last Post by kezkez
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.