Port to netstandard.

Nit fixes.
Fixed e2e tests.
Added MIT license.
This commit is contained in:
Alexandru Macocian
2021-03-26 11:58:07 +01:00
parent f6069bd3aa
commit f39e8cf89e
26 changed files with 112 additions and 1034 deletions
@@ -1,16 +1,16 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SystemExtensions.Collections;
using System.Collections;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SystemExtensions;
using System;
using System.Runtime.Serialization.Formatters.Binary;
using System.Xml.Serialization;
using System.IO;
namespace SystemExtensions.Collections.Tests
namespace System.Collections.Tests
{
[TestClass()]
public class BinaryHeapTests
@@ -112,7 +112,7 @@ namespace SystemExtensions.Collections.Tests
}
binaryHeap.Clear(false);
int[] array = binaryHeap.ToArray();
if (binaryHeap.Count > 0 || binaryHeap.Capacity != 10)
if (binaryHeap.Count > 0 || binaryHeap.Capacity == 10)
{
Assert.Fail();
}
@@ -1,5 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SystemExtensions.Collections;
using System.Collections;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -9,7 +9,7 @@ using System.Threading;
using System.Runtime.Serialization.Formatters.Binary;
using System.IO;
namespace SystemExtensions.Collections.Tests
namespace System.Collections.Tests
{
[TestClass()]
public class FibonacciHeapTests
@@ -1,15 +1,15 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SystemExtensions.Collections;
using System.Collections;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SystemExtensions;
using System;
using System.Runtime.Serialization.Formatters.Binary;
using System.IO;
namespace SystemExtensions.Collections.Tests
namespace System.Collections.Tests
{
[TestClass()]
public class PriorityQueueTests
@@ -1,5 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SystemExtensions.Collections;
using System.Collections;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -8,7 +8,7 @@ using System.Threading.Tasks;
using System.Runtime.Serialization.Formatters.Binary;
using System.IO;
namespace SystemExtensions.Collections.Tests
namespace System.Collections.Tests
{
[TestClass()]
public class SkipListTests
@@ -1,5 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SystemExtensions.Collections;
using System.Collections;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -8,7 +8,7 @@ using System.Threading.Tasks;
using System.Runtime.Serialization.Formatters.Binary;
using System.IO;
namespace SystemExtensions.Collections.Tests
namespace System.Collections.Tests
{
[TestClass()]
public class TreapTests
@@ -1,5 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SystemExtensions.Structures.BitStructures;
using System.Structures.BitStructures;
namespace SystemExtensionsTests.Structures
{
@@ -1,5 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SystemExtensions.Structures.BitStructures;
using System.Structures.BitStructures;
namespace SystemExtensionsTests.Structures
{
@@ -72,9 +72,9 @@
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\SystemExtensions\SystemExtensions.csproj">
<Project>{55850ff3-70e4-4828-beee-39837ac0d24c}</Project>
<Name>SystemExtensions</Name>
<ProjectReference Include="..\SystemExtensions.NetStandard\SystemExtensions.NetStandard.csproj">
<Project>{4ce9e55c-6016-4631-b8d4-4d763dd05f23}</Project>
<Name>SystemExtensions.NetStandard</Name>
</ProjectReference>
</ItemGroup>
<Choose>
@@ -1,5 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SystemExtensions.Threading;
using System.Threading;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -7,9 +7,9 @@ using System.Text;
using System.Threading.Tasks;
using System.Threading;
using System.Diagnostics;
using static SystemExtensions.Threading.PriorityThreadPool;
using static System.Threading.PriorityThreadPool;
namespace SystemExtensions.Threading.Tests
namespace System.Threading.Tests
{
[TestClass()]
public class PriorityThreadPoolTests