Move project to sub-directory, add empty test project, and fix namespace
This commit is contained in:
parent
504ec41ebc
commit
a52b19bfa4
18
Quadtree.sln
18
Quadtree.sln
@ -3,7 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.10.35201.131
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Quadtree", "Quadtree.csproj", "{F9BB98FE-C82A-405F-BC01-95C0E895E4B0}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Quadtree", "Quadtree\Quadtree.csproj", "{9E96645B-F8F9-4A1F-AED9-09BCAE2D497D}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "QuadtreeTests", "QuadtreeTests\QuadtreeTests.csproj", "{9A4EDDCF-79A3-4EBE-9C9C-7D83D7BAF91A}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
@ -11,15 +13,19 @@ Global
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{F9BB98FE-C82A-405F-BC01-95C0E895E4B0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{F9BB98FE-C82A-405F-BC01-95C0E895E4B0}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{F9BB98FE-C82A-405F-BC01-95C0E895E4B0}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{F9BB98FE-C82A-405F-BC01-95C0E895E4B0}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{9E96645B-F8F9-4A1F-AED9-09BCAE2D497D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{9E96645B-F8F9-4A1F-AED9-09BCAE2D497D}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{9E96645B-F8F9-4A1F-AED9-09BCAE2D497D}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{9E96645B-F8F9-4A1F-AED9-09BCAE2D497D}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{9A4EDDCF-79A3-4EBE-9C9C-7D83D7BAF91A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{9A4EDDCF-79A3-4EBE-9C9C-7D83D7BAF91A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{9A4EDDCF-79A3-4EBE-9C9C-7D83D7BAF91A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{9A4EDDCF-79A3-4EBE-9C9C-7D83D7BAF91A}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {515DF911-1A2B-4213-84A1-5A60C0564C5B}
|
||||
SolutionGuid = {D9E6DF99-F958-43C0-81DC-B0D5631BC411}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
|
@ -1,6 +1,6 @@
|
||||
using System.Numerics;
|
||||
|
||||
namespace Quadtree
|
||||
namespace SpatialCollections
|
||||
{
|
||||
public enum IntersectionType { Contains, Intersects, Disjoint }
|
||||
|
@ -1,6 +1,6 @@
|
||||
using System.Numerics;
|
||||
|
||||
namespace Quadtree
|
||||
namespace SpatialCollections
|
||||
{
|
||||
public interface IWorldObject
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
namespace Quadtree
|
||||
namespace SpatialCollections
|
||||
{
|
||||
internal static class ListExtensions
|
||||
{
|
@ -1,6 +1,6 @@
|
||||
using System.Numerics;
|
||||
|
||||
namespace Quadtree
|
||||
namespace SpatialCollections
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>Quadtree for fast add, remove, and query of world objects. The world size does not have to be known in
|
@ -1,4 +1,4 @@
|
||||
namespace Quadtree
|
||||
namespace SpatialCollections
|
||||
{
|
||||
internal struct QuadtreeItem<T>
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
namespace Quadtree
|
||||
namespace SpatialCollections
|
||||
{
|
||||
internal struct QuadtreeQuery
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
namespace Quadtree
|
||||
namespace SpatialCollections
|
||||
{
|
||||
internal struct QuadtreeVertex
|
||||
{
|
28
QuadtreeTests/QuadtreeTests.csproj
Normal file
28
QuadtreeTests/QuadtreeTests.csproj
Normal file
@ -0,0 +1,28 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
|
||||
<IsPackable>false</IsPackable>
|
||||
<IsTestProject>true</IsTestProject>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="coverlet.collector" Version="6.0.0" />
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
|
||||
<PackageReference Include="NUnit" Version="3.14.0" />
|
||||
<PackageReference Include="NUnit.Analyzers" Version="3.9.0" />
|
||||
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Quadtree\Quadtree.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Using Include="NUnit.Framework" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
19
QuadtreeTests/Tests.cs
Normal file
19
QuadtreeTests/Tests.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using SpatialCollections;
|
||||
|
||||
namespace QuadtreeTests
|
||||
{
|
||||
public class Tests
|
||||
{
|
||||
[SetUp]
|
||||
public void Setup()
|
||||
{
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void Test1()
|
||||
{
|
||||
Quadtree quadtree = new(20, 4);
|
||||
Assert.Pass();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user