Files
RobustToolbox/Robust.UnitTesting/Client/Graphics/EyeTest.cs
T

37 lines
873 B
C#

using NUnit.Framework;
using Robust.Client.Graphics;
using Robust.Shared.Map;
using Robust.Shared.Maths;
// ReSharper disable AccessToStaticMemberViaDerivedType
namespace Robust.UnitTesting.Client.Graphics
{
[TestFixture, Parallelizable, TestOf(typeof(Eye))]
sealed class EyeTest
{
[Test]
public void Constructor_DefaultZoom_isTwo()
{
var eye = new Eye();
Assert.That(eye.Zoom, Is.Approximately(Vector2.One*2f));
}
[Test]
public void Constructor_DefaultPosition_isZero()
{
var eye = new Eye();
Assert.That(eye.Position, Is.EqualTo(MapCoordinates.Nullspace));
}
[Test]
public void Constructor_DefaultDrawFov_isTrue()
{
var eye = new Eye();
Assert.That(eye.DrawFov, Is.True);
}
}
}