Visualize melee weapon cooldowns in HUD.
This commit is contained in:
17
Content.Tests/Client/UserInterface/HandsGuiTest.cs
Normal file
17
Content.Tests/Client/UserInterface/HandsGuiTest.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using Content.Client.UserInterface;
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace Content.Tests.Client.UserInterface
|
||||
{
|
||||
[TestFixture]
|
||||
public class HandsGuiTest
|
||||
{
|
||||
[Test]
|
||||
public void TestCalculateCooldownLevel()
|
||||
{
|
||||
Assert.AreEqual(HandsGui.CalculateCooldownLevel(0.5f), 4);
|
||||
Assert.AreEqual(HandsGui.CalculateCooldownLevel(1), 8);
|
||||
Assert.AreEqual(HandsGui.CalculateCooldownLevel(0), 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user