From 55bf458a2b5af457ec6dff1f6fc6e1fbb605d1ef Mon Sep 17 00:00:00 2001 From: Chris Cameron Date: Mon, 6 Jan 2020 10:27:55 -0500 Subject: [PATCH] test: Fixing PriorityQueue unit tests --- ICD.Common.Utils.Tests/Collections/PriorityQueueTest.cs | 4 ++-- ICD.Common.Utils/Collections/PriorityQueue.cs | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) 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. /// /// ///