From 77836d51fc656b9bc0c23b9d89157ba0e0daa02b Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Sun, 2 Apr 2023 04:54:58 +0100 Subject: [PATCH] fix(test): fix ref as of bc3dedfa7dcdf6c7cc3d9444cde23c01137f4a02 --- .../Assets/Tests/DebugExIntegrationTests.cs | 40 ------------------- .../Tests/DebugUtilityIntegrationTests.cs | 40 +++++++++++++++++++ ...a => DebugUtilityIntegrationTests.cs.meta} | 0 3 files changed, 40 insertions(+), 40 deletions(-) delete mode 100644 X10D.Unity.Tests/Assets/Tests/DebugExIntegrationTests.cs create mode 100644 X10D.Unity.Tests/Assets/Tests/DebugUtilityIntegrationTests.cs rename X10D.Unity.Tests/Assets/Tests/{DebugExIntegrationTests.cs.meta => DebugUtilityIntegrationTests.cs.meta} (100%) diff --git a/X10D.Unity.Tests/Assets/Tests/DebugExIntegrationTests.cs b/X10D.Unity.Tests/Assets/Tests/DebugExIntegrationTests.cs deleted file mode 100644 index cd517df..0000000 --- a/X10D.Unity.Tests/Assets/Tests/DebugExIntegrationTests.cs +++ /dev/null @@ -1,40 +0,0 @@ -using UnityEngine; -using X10D.Drawing; -using X10D.Unity.Drawing; -using Color = UnityEngine.Color; - -namespace X10D.Unity.Tests -{ - internal sealed class DebugExIntegrationTests : MonoBehaviour - { - private void Update() - { - DebugEx.DrawLine(Vector3.zero, Vector3.right, Color.red); - DebugEx.DrawLine(Vector3.zero, Vector3.up, Color.green); - DebugEx.DrawLine(Vector3.zero, Vector3.forward, Color.blue); - - DebugEx.DrawWireCube(new Vector3(1.5f, 0.5f, 0), Vector3.one * 0.5f, Color.yellow); - DebugEx.DrawRectangle(new Vector2(-1.5f, 0.5f), Vector2.one * -0.5f, Color.cyan); - - var circle = new CircleF(0.0f, 0.0f, 0.5f); - DebugEx.DrawCircle(circle, 25, new Vector2(-3.0f, 0.5f), Color.magenta); - - var ellipse = new EllipseF(0.0f, 0.0f, 1.0f, 0.5f); - DebugEx.DrawEllipse(ellipse, 25, new Vector2(0.0f, 1.5f), Color.white); - - var hexagon = new PolygonF(); - hexagon.AddVertex(new Vector2(-0.5f, 0.5f)); - hexagon.AddVertex(new Vector2(-0.25f, 1.0f)); - hexagon.AddVertex(new Vector2(0.25f, 1.0f)); - hexagon.AddVertex(new Vector2(0.5f, 0.5f)); - hexagon.AddVertex(new Vector2(0.25f, 0)); - hexagon.AddVertex(new Vector2(-0.25f, 0)); - DebugEx.DrawPolygon(hexagon, new Vector2(3.0f, 0.0f), Color.white); - - var sphere = new Sphere(System.Numerics.Vector3.Zero, 0.5f); - DebugEx.DrawSphere(sphere, 25, new Vector2(0.0f, -1.5f), Color.white); - - DebugEx.Assert(true); - } - } -} diff --git a/X10D.Unity.Tests/Assets/Tests/DebugUtilityIntegrationTests.cs b/X10D.Unity.Tests/Assets/Tests/DebugUtilityIntegrationTests.cs new file mode 100644 index 0000000..1c625e5 --- /dev/null +++ b/X10D.Unity.Tests/Assets/Tests/DebugUtilityIntegrationTests.cs @@ -0,0 +1,40 @@ +using UnityEngine; +using X10D.Drawing; +using X10D.Unity.Drawing; +using Color = UnityEngine.Color; + +namespace X10D.Unity.Tests +{ + internal sealed class DebugUtilityIntegrationTests : MonoBehaviour + { + private void Update() + { + DebugUtility.DrawLine(Vector3.zero, Vector3.right, Color.red); + DebugUtility.DrawLine(Vector3.zero, Vector3.up, Color.green); + DebugUtility.DrawLine(Vector3.zero, Vector3.forward, Color.blue); + + DebugUtility.DrawWireCube(new Vector3(1.5f, 0.5f, 0), Vector3.one * 0.5f, Color.yellow); + DebugUtility.DrawRectangle(new Vector2(-1.5f, 0.5f), Vector2.one * -0.5f, Color.cyan); + + var circle = new CircleF(0.0f, 0.0f, 0.5f); + DebugUtility.DrawCircle(circle, 25, new Vector2(-3.0f, 0.5f), Color.magenta); + + var ellipse = new EllipseF(0.0f, 0.0f, 1.0f, 0.5f); + DebugUtility.DrawEllipse(ellipse, 25, new Vector2(0.0f, 1.5f), Color.white); + + var hexagon = new PolygonF(); + hexagon.AddVertex(new Vector2(-0.5f, 0.5f)); + hexagon.AddVertex(new Vector2(-0.25f, 1.0f)); + hexagon.AddVertex(new Vector2(0.25f, 1.0f)); + hexagon.AddVertex(new Vector2(0.5f, 0.5f)); + hexagon.AddVertex(new Vector2(0.25f, 0)); + hexagon.AddVertex(new Vector2(-0.25f, 0)); + DebugUtility.DrawPolygon(hexagon, new Vector2(3.0f, 0.0f), Color.white); + + var sphere = new Sphere(System.Numerics.Vector3.Zero, 0.5f); + DebugUtility.DrawSphere(sphere, 25, new Vector2(0.0f, -1.5f), Color.white); + + DebugUtility.Assert(true); + } + } +} diff --git a/X10D.Unity.Tests/Assets/Tests/DebugExIntegrationTests.cs.meta b/X10D.Unity.Tests/Assets/Tests/DebugUtilityIntegrationTests.cs.meta similarity index 100% rename from X10D.Unity.Tests/Assets/Tests/DebugExIntegrationTests.cs.meta rename to X10D.Unity.Tests/Assets/Tests/DebugUtilityIntegrationTests.cs.meta