Skip to content

Commit 28b5f07

Browse files
author
LoneWandererProductions
committed
reshuffle into new namespace.
1 parent 8cf5de5 commit 28b5f07

21 files changed

Lines changed: 80 additions & 103 deletions
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
/*
22
* COPYRIGHT: See COPYING in the top level directory
3-
* PROJECT: CommonExtendedObjectsTests
3+
* PROJECT: Common.ExtendedObject.Tests
44
* FILE: BiMapTestss.cs
55
* PURPOSE: Tests for ExtendedSystemObjects
66
* PROGRAMER: Peter Geinitz (Wayfarer)
77
*/
88

9-
using System;
109
using ExtendedSystemObjects;
11-
using Microsoft.VisualStudio.TestTools.UnitTesting;
1210

13-
namespace CommonExtendedObjectsTests
11+
namespace Common.ExtendedObject.Tests
1412
{
1513
/// <summary>
1614
/// Some generic tests for BiMap. These tests cover basic functionality such as adding pairs, retrieving values, and ensuring that duplicate values are not allowed.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net9.0</TargetFramework>
5+
<LangVersion>latest</LangVersion>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<Nullable>enable</Nullable>
8+
<EnableMSTestRunner>true</EnableMSTestRunner>
9+
<OutputType>Exe</OutputType>
10+
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
11+
<!--
12+
Displays error on console in addition to the log file. Note that this feature comes with a performance impact.
13+
For more information, visit https://learn.microsoft.com/dotnet/core/testing/unit-testing-platform-integration-dotnet-test#show-failure-per-test
14+
-->
15+
<TestingPlatformShowTestsFailure>true</TestingPlatformShowTestsFailure>
16+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
17+
</PropertyGroup>
18+
19+
<ItemGroup>
20+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
21+
<PackageReference Include="Microsoft.Testing.Extensions.CodeCoverage" Version="17.12.6" />
22+
<PackageReference Include="Microsoft.Testing.Extensions.TrxReport" Version="1.4.3" />
23+
<PackageReference Include="MSTest" Version="3.6.4" />
24+
</ItemGroup>
25+
26+
<ItemGroup>
27+
<ProjectReference Include="..\ExtendedSystemObjects\ExtendedSystemObjects.csproj" />
28+
<ProjectReference Include="..\Mathematics\Mathematics.csproj" />
29+
</ItemGroup>
30+
31+
<ItemGroup>
32+
<Using Include="Microsoft.VisualStudio.TestTools.UnitTesting" />
33+
</ItemGroup>
34+
35+
</Project>

CommonExtendedObjectsTests/ExtendedSystemObjects.cs renamed to Common.ExtendedObject.Tests/ExtendedSystemObjects.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* COPYRIGHT: See COPYING in the top level directory
3-
* PROJECT: CommonExtendedObjectsTests
3+
* PROJECT: Common.ExtendedObject.Tests
44
* FILE: ExtendedSystemObjects.cs
55
* PURPOSE: Tests for ExtendedSystemObjects
66
* PROGRAMER: Peter Geinitz (Wayfarer)
@@ -10,17 +10,13 @@
1010

1111
#pragma warning disable 649
1212

13-
using System;
14-
using System.Collections.Generic;
1513
using System.Diagnostics;
16-
using System.Linq;
1714
using ExtendedSystemObjects;
1815
using ExtendedSystemObjects.Helper;
1916
using ExtendedSystemObjects.Interfaces;
2017
using Mathematics;
21-
using Microsoft.VisualStudio.TestTools.UnitTesting;
2218

23-
namespace CommonExtendedObjectsTests
19+
namespace Common.ExtendedObject.Tests
2420
{
2521
/// <summary>
2622
/// CommonLibraryTests Extended system objects unit test class.

CommonExtendedObjectsTests/ExtendedSystemObjectsSetOperation.cs renamed to Common.ExtendedObject.Tests/ExtendedSystemObjectsSetOperation.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
/*
22
* COPYRIGHT: See COPYING in the top level directory
3-
* PROJECT: CommonExtendedObjectsTests
3+
* PROJECT: Common.ExtendedObject.Tests
44
* FILE: ExtendedSystemObjectsSetOperation.cs
55
* PURPOSE: Tests for ExtendedSystemObjects, Set Operations
66
* PROGRAMER: Peter Geinitz (Wayfarer)
77
*/
88

9-
using System.Collections.Generic;
109
using ExtendedSystemObjects;
11-
using Microsoft.VisualStudio.TestTools.UnitTesting;
1210

13-
namespace CommonExtendedObjectsTests
11+
namespace Common.ExtendedObject.Tests
1412
{
1513
/// <summary>
1614
/// Test for Base Set Operations

CommonExtendedObjectsTests/FastLinqTests.cs renamed to Common.ExtendedObject.Tests/FastLinqTests.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
/*
22
* COPYRIGHT: See COPYING in the top level directory
3-
* PROJECT: CommonExtendedObjectsTests
3+
* PROJECT: Common.ExtendedObject.Tests
44
* FILE: FastLinqTests.cs
55
* PURPOSE: Some basic unit tests for FastLinq extension methods to ensure correctness and benchmark performance against standard LINQ methods.
66
* The linq is not actual faster than standard linq, but it is more memory efficient and can be faster in certain scenarios due to reduced allocations and better cache usage.
77
* PROGRAMMER: Peter Geinitz (Wayfarer)
88
*/
99

10-
using System;
1110
using System.Diagnostics;
12-
using System.Linq;
13-
using Microsoft.VisualStudio.TestTools.UnitTesting;
1411
using ExtendedSystemObjects;
1512

16-
namespace CommonExtendedObjectsTests
13+
namespace Common.ExtendedObject.Tests
1714
{
1815
/// <summary>
1916
/// Basic unit tests for FastLinq extension methods to ensure correctness and benchmark performance against standard LINQ methods.

CommonExtendedObjectsTests/HelperMethods.cs renamed to Common.ExtendedObject.Tests/HelperMethods.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* COPYRIGHT: See COPYING in the top level directory
3-
* PROJECT: CommonExtendedObjectsTests
3+
* PROJECT: Common.ExtendedObject.Tests
44
* FILE: HelperMethods.cs
55
* PURPOSE: Helper Methods
66
* PROGRAMER: Peter Geinitz (Wayfarer)
@@ -9,7 +9,7 @@
99
using ExtendedSystemObjects;
1010
using Mathematics;
1111

12-
namespace CommonExtendedObjectsTests
12+
namespace Common.ExtendedObject.Tests
1313
{
1414
/// <summary>
1515
/// The helper methods class.
@@ -47,7 +47,7 @@ internal static BaseMatrix MatrixTestOne(BaseMatrix mOne, BaseMatrix mTwo)
4747
res += spanOne[iOne + k] * spanTwo[iTwo];
4848
}
4949

50-
spanResult[(i * w) + j] = res;
50+
spanResult[i * w + j] = res;
5151
}
5252
}
5353

CommonExtendedObjectsTests/ImmutableLookupMapAllTests.cs renamed to Common.ExtendedObject.Tests/ImmutableLookupMapAllTests.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
/*
22
* COPYRIGHT: See COPYING in the top level directory
3-
* PROJECT: CommonExtendedObjectsTests
3+
* PROJECT: Common.ExtendedObject.Tests
44
* FILE: ImmutableLookupMapAllTests.cs
55
* PURPOSE: Unified test suite for both ImmutableLookupMap and ImmutableLookupMapUnmanaged
66
* PROGRAMMER: Peter Geinitz (Wayfarer)
77
*/
88

9-
using System.Collections.Generic;
109
using System.Collections.ObjectModel;
1110
using System.Diagnostics;
12-
using System.Linq;
1311
using ExtendedSystemObjects;
14-
using Microsoft.VisualStudio.TestTools.UnitTesting;
1512

16-
namespace CommonExtendedObjectsTests
13+
namespace Common.ExtendedObject.Tests
1714
{
1815
/// <summary>
1916
/// Unified tests for both ImmutableLookupMap and ImmutableLookupMapUnmanaged.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)]

CommonExtendedObjectsTests/MemoryVaultTests.cs renamed to Common.ExtendedObject.Tests/MemoryVaultTests.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
/*
22
* COPYRIGHT: See COPYING in the top level directory
3-
* PROJECT: CommonExtendedObjectsTests
3+
* PROJECT: Common.ExtendedObject.Tests
44
* FILE: MemoryVaultTests.cs
55
* PURPOSE: Tests for the MemoryVault
66
* PROGRAMER: Peter Geinitz (Wayfarer)
77
*/
88

9-
using System;
10-
using System.Threading;
119
using ExtendedSystemObjects;
12-
using Microsoft.VisualStudio.TestTools.UnitTesting;
1310

14-
namespace CommonExtendedObjectsTests
11+
namespace Common.ExtendedObject.Tests
1512
{
1613
/// <summary>
1714
/// Some basic tests for Memory Vault

CommonExtendedObjectsTests/ResourcesGeneral.cs renamed to Common.ExtendedObject.Tests/ResourcesGeneral.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*
22
* COPYRIGHT: See COPYING in the top level directory
3-
* PROJECT: CommonExtendedObjectsTests
3+
* PROJECT: Common.ExtendedObject.Tests
44
* FILE: ResourcesGeneral.cs
55
* PURPOSE: String Resources
66
* PROGRAMER: Peter Geinitz (Wayfarer)
77
*/
88

9-
namespace CommonExtendedObjectsTests
9+
namespace Common.ExtendedObject.Tests
1010
{
1111
/// <summary>
1212
/// The resources general class.

0 commit comments

Comments
 (0)