basic forge setup and refactored for some warning
This commit is contained in:
@@ -18,17 +18,17 @@ public class DashSystemUnitTest
|
||||
_dashSystem.DashCast3D = new ShapeCast3D();
|
||||
_dashSystem.AddChild(_dashSystem.DashCast3D);
|
||||
|
||||
_dashSystem._dashCastDrop = new ShapeCast3D();
|
||||
_dashSystem.AddChild(_dashSystem._dashCastDrop);
|
||||
_dashSystem.DashCastDrop = new ShapeCast3D();
|
||||
_dashSystem.AddChild(_dashSystem.DashCastDrop);
|
||||
|
||||
_dashSystem._dashTarget = new MeshInstance3D();
|
||||
_dashSystem.AddChild(_dashSystem._dashTarget);
|
||||
_dashSystem.DashTarget = new MeshInstance3D();
|
||||
_dashSystem.AddChild(_dashSystem.DashTarget);
|
||||
|
||||
_dashSystem._dashDropIndicator = new MeshInstance3D();
|
||||
_dashSystem.AddChild(_dashSystem._dashDropIndicator);
|
||||
_dashSystem.DashDropIndicator = new MeshInstance3D();
|
||||
_dashSystem.AddChild(_dashSystem.DashDropIndicator);
|
||||
|
||||
_dashSystem._dashDropLocationIndicator = new MeshInstance3D();
|
||||
_dashSystem.AddChild(_dashSystem._dashDropLocationIndicator);
|
||||
_dashSystem.DashDropLocationIndicator = new MeshInstance3D();
|
||||
_dashSystem.AddChild(_dashSystem.DashDropLocationIndicator);
|
||||
}
|
||||
|
||||
[AfterTest]
|
||||
@@ -41,15 +41,15 @@ public class DashSystemUnitTest
|
||||
public void TestStopPreparingDash()
|
||||
{
|
||||
_dashSystem.CanDashThroughTarget = true;
|
||||
_dashSystem._dashTarget.Visible = true;
|
||||
_dashSystem._dashDropIndicator.Visible = true;
|
||||
_dashSystem._dashDropLocationIndicator.Visible = true;
|
||||
_dashSystem.DashTarget.Visible = true;
|
||||
_dashSystem.DashDropIndicator.Visible = true;
|
||||
_dashSystem.DashDropLocationIndicator.Visible = true;
|
||||
|
||||
_dashSystem.StopPreparingDash();
|
||||
|
||||
AssertBool(_dashSystem.CanDashThroughTarget).IsFalse();
|
||||
AssertBool(_dashSystem._dashTarget.Visible).IsFalse();
|
||||
AssertBool(_dashSystem._dashDropIndicator.Visible).IsFalse();
|
||||
AssertBool(_dashSystem._dashDropLocationIndicator.Visible).IsFalse();
|
||||
AssertBool(_dashSystem.DashTarget.Visible).IsFalse();
|
||||
AssertBool(_dashSystem.DashDropIndicator.Visible).IsFalse();
|
||||
AssertBool(_dashSystem.DashDropLocationIndicator.Visible).IsFalse();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,8 +15,8 @@ public class PlayerControllerUnitTest
|
||||
public void SetupTest()
|
||||
{
|
||||
_player = new PlayerController();
|
||||
_player._targetSpeed = 7.0f;
|
||||
_player._gravity = 9.8f;
|
||||
_player.TargetSpeed = 7.0f;
|
||||
_player.Gravity = 9.8f;
|
||||
|
||||
var rHealth = new RHealth(100.0f);
|
||||
_player.RHealth = rHealth;
|
||||
@@ -113,9 +113,9 @@ public class PlayerControllerUnitTest
|
||||
[TestCase]
|
||||
public void TestDashCooldownTimeout()
|
||||
{
|
||||
_player._canDash = false;
|
||||
_player.CanDash = false;
|
||||
_player.DashCooldownTimeout();
|
||||
AssertBool(_player._canDash).IsTrue();
|
||||
AssertBool(_player.CanDash).IsTrue();
|
||||
}
|
||||
|
||||
[TestCase]
|
||||
|
||||
Reference in New Issue
Block a user