diff --git a/SystemExtensions/Collections/BinaryHeap.cs b/SystemExtensions/Collections/BinaryHeap.cs index 7f181d0..25fcd04 100644 --- a/SystemExtensions/Collections/BinaryHeap.cs +++ b/SystemExtensions/Collections/BinaryHeap.cs @@ -103,7 +103,7 @@ namespace SystemExtensions.Collections /// Removes the item at the root. Throws exception if there are no items in the heap. /// /// Value removed. - public T RemoveMin() + public T RemoveMinimum() { if (count == 0) { diff --git a/SystemExtensions/Collections/PriorityQueue.cs b/SystemExtensions/Collections/PriorityQueue.cs index 3f98f96..b5b49ff 100644 --- a/SystemExtensions/Collections/PriorityQueue.cs +++ b/SystemExtensions/Collections/PriorityQueue.cs @@ -55,7 +55,7 @@ namespace SystemExtensions.Collections { if (Count > 0) { - return binaryHeap.RemoveMin(); + return binaryHeap.RemoveMinimum(); } else { diff --git a/SystemExtensionsTests/Collections/BinaryHeapTests.cs b/SystemExtensionsTests/Collections/BinaryHeapTests.cs index b994387..9ba2ea5 100644 --- a/SystemExtensionsTests/Collections/BinaryHeapTests.cs +++ b/SystemExtensionsTests/Collections/BinaryHeapTests.cs @@ -78,7 +78,7 @@ namespace SystemExtensions.Collections.Tests { Assert.Fail(); } - System.Diagnostics.Debug.WriteLine(binaryHeap.RemoveMin()); + System.Diagnostics.Debug.WriteLine(binaryHeap.RemoveMinimum()); tries--; } }