diff --git a/ICD.Common.Utils.Tests/Collections/PriorityQueueTest.cs b/ICD.Common.Utils.Tests/Collections/PriorityQueueTest.cs index b44608f..4447100 100644 --- a/ICD.Common.Utils.Tests/Collections/PriorityQueueTest.cs +++ b/ICD.Common.Utils.Tests/Collections/PriorityQueueTest.cs @@ -133,8 +133,8 @@ namespace ICD.Common.Utils.Tests.Collections }; Assert.AreEqual(1, dequeue[0]); - Assert.AreEqual(4, dequeue[1]); - Assert.AreEqual(3, dequeue[2]); + Assert.AreEqual(3, dequeue[1]); + Assert.AreEqual(4, dequeue[2]); } [Test] diff --git a/ICD.Common.Utils/Collections/PriorityQueue.cs b/ICD.Common.Utils/Collections/PriorityQueue.cs index ace0eb1..6d18399 100644 --- a/ICD.Common.Utils/Collections/PriorityQueue.cs +++ b/ICD.Common.Utils/Collections/PriorityQueue.cs @@ -106,8 +106,8 @@ namespace ICD.Common.Utils.Collections /// /// Removes any items in the queue matching the predicate. - /// Inserts the given item in the position of the first removed item, or at the end of the queue. - /// This is useful for reducing duplication, or replacing items with something more pertinant. + /// Appends the given item at the end of the given priority level. + /// This is useful for reducing duplication, or replacing items with something more pertinent. /// /// /// @@ -122,8 +122,8 @@ namespace ICD.Common.Utils.Collections /// /// Removes any items in the queue matching the predicate. - /// Inserts the given item in the position of the first removed item, or at the end of the queue. - /// This is useful for reducing duplication, or replacing items with something more pertinant. + /// Appends the given item at the end of the given priority level. + /// This is useful for reducing duplication, or replacing items with something more pertinent. /// /// ///