mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-03 10:37:05 +02:00
* Removed the Interfaces folder. * All objects inside the GameObjects subfolders are now in the GameObjects namespace. * Added a Resharper DotSettings file to mark the GameObjects subfolders as not providing namespaces. * Simplified Robust.client.Graphics namespace. * Automated remove redundant using statements.
37 lines
866 B
C#
37 lines
866 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))]
|
|
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);
|
|
}
|
|
}
|
|
}
|