From 8a4f0344e214bea2f7cad7897cc57b331ea2be2b Mon Sep 17 00:00:00 2001 From: Alex Macocian Date: Tue, 16 Apr 2019 20:33:18 +0200 Subject: [PATCH] Fixed project rename --- SystemExtensions/Collections/BinaryHeap.cs | 2 +- SystemExtensions/Collections/PriorityQueue.cs | 2 +- SystemExtensionsTests/Collections/BinaryHeapTests.cs | 4 ++-- .../Collections/PriorityQueueTests.cs | 10 +++++++--- SystemExtensionsTests/SystemExtensionsTests.csproj | 4 ++-- 5 files changed, 13 insertions(+), 9 deletions(-) diff --git a/SystemExtensions/Collections/BinaryHeap.cs b/SystemExtensions/Collections/BinaryHeap.cs index b76a94c..bdc7544 100644 --- a/SystemExtensions/Collections/BinaryHeap.cs +++ b/SystemExtensions/Collections/BinaryHeap.cs @@ -4,7 +4,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace PriorityThreadPool.Collections +namespace SystemExtensions.Collections { /// /// Binary heap implementation diff --git a/SystemExtensions/Collections/PriorityQueue.cs b/SystemExtensions/Collections/PriorityQueue.cs index 8dd8952..dbb5b32 100644 --- a/SystemExtensions/Collections/PriorityQueue.cs +++ b/SystemExtensions/Collections/PriorityQueue.cs @@ -4,7 +4,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace PriorityThreadPool.Collections +namespace SystemExtensions.Collections { public class PriorityQueue { diff --git a/SystemExtensionsTests/Collections/BinaryHeapTests.cs b/SystemExtensionsTests/Collections/BinaryHeapTests.cs index 6d4254d..cf04ab9 100644 --- a/SystemExtensionsTests/Collections/BinaryHeapTests.cs +++ b/SystemExtensionsTests/Collections/BinaryHeapTests.cs @@ -1,12 +1,12 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; -using PriorityThreadPool.Collections; +using SystemExtensions.Collections; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -namespace PriorityThreadPool.Collections.Tests +namespace SystemExtensions.Collections.Tests { [TestClass()] public class BinaryHeapTests diff --git a/SystemExtensionsTests/Collections/PriorityQueueTests.cs b/SystemExtensionsTests/Collections/PriorityQueueTests.cs index a612541..68802ba 100644 --- a/SystemExtensionsTests/Collections/PriorityQueueTests.cs +++ b/SystemExtensionsTests/Collections/PriorityQueueTests.cs @@ -1,12 +1,12 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; -using PriorityThreadPool.Collections; +using SystemExtensions.Collections; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -namespace PriorityThreadPool.Collections.Tests +namespace SystemExtensions.Collections.Tests { [TestClass()] public class PriorityQueueTests @@ -89,7 +89,11 @@ namespace PriorityThreadPool.Collections.Tests [TestMethod()] public void PeekTest() { - Assert.Fail(); + priorityQueue.Enqueue(1051); + if(priorityQueue.Peek() != 1051 && priorityQueue.Count != 1) + { + Assert.Fail(); + } } } } \ No newline at end of file diff --git a/SystemExtensionsTests/SystemExtensionsTests.csproj b/SystemExtensionsTests/SystemExtensionsTests.csproj index 237722b..a228070 100644 --- a/SystemExtensionsTests/SystemExtensionsTests.csproj +++ b/SystemExtensionsTests/SystemExtensionsTests.csproj @@ -64,8 +64,8 @@ - - {55850FF3-70E4-4828-BEEE-39837AC0D24C} + + {55850ff3-70e4-4828-beee-39837ac0d24c} SystemExtensions