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]);
         }

Assert.That(priorityQueue.peek(), Is.EqualTo(o));

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.