From 20df172027c643646878eeb43404f995fff0eeaf Mon Sep 17 00:00:00 2001 From: Evan Hemsley <2342303+ehemsley@users.noreply.github.com> Date: Mon, 6 Jan 2020 01:38:13 -0800 Subject: [PATCH] fix sweep test test --- Test/SweepTestTest.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Test/SweepTestTest.cs b/Test/SweepTestTest.cs index 7b9dceb..44ae9af 100644 --- a/Test/SweepTestTest.cs +++ b/Test/SweepTestTest.cs @@ -28,14 +28,14 @@ namespace Tests spatialHash.Insert(2, farthestRectangle, farthestTransform); spatialHash.Insert(3, downRectangle, downTransform); - SweepTest.Rectangle(spatialHash, rectangle, transform, new Vector2(12, 0)).Should().Be( - new SweepResult(true, new Vector2(7, 0), 1, otherRectangle, otherTransform) + SweepTest.Test(spatialHash, rectangle, transform, new Vector2(12, 0)).Should().Be( + new SweepResult(true, new Vector2(7, 0), 1) ); - SweepTest.Rectangle(spatialHash, rectangle, transform, new Vector2(-12, 0)).Hit.Should().BeFalse(); + SweepTest.Test(spatialHash, rectangle, transform, new Vector2(-12, 0)).Hit.Should().BeFalse(); - SweepTest.Rectangle(spatialHash, rectangle, transform, new Vector2(0, 20)).Should().Be( - new SweepResult(true, new Vector2(0, 15), 3, downRectangle, downTransform) + SweepTest.Test(spatialHash, rectangle, transform, new Vector2(0, 20)).Should().Be( + new SweepResult(true, new Vector2(0, 15), 3) ); } }